WooCommerce Bookings Calendar CSS Style Elements

If you want to change the color scheme of the WooCommerce Bookings calendar of the customer view, you can do so by modifying a few CSS styles.

If you are using a block theme you can enter custom CSS in the site editor.

Note:

This is a Developer level doc. If you are unfamiliar working with code and resolving potential conflicts, we recommend you work with a Woo Agency Partner for larger projects, or find a WooCommerce developer on Codeable for smaller customizations. We are unable to provide support for customizations under our Support Policy.

CSS Styles

↑ Back to top

Below are the CSS styles you can use to modify the different calendar elements. Add any of these styles to your theme’s custom CSS and change the color hex codes to your choice or customize further for more options.

Month header

↑ Back to top
/* Month header background color */
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker-header {
	background-color: #000000;
}

Previous/Next month arrow

↑ Back to top
/* Previous/Next month arrow background color */
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker .ui-datepicker-next, 
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker .ui-datepicker-prev {
	background-color: #000000;
}
/* Previous/Next month arrows if not allowed, and calendar dates that are not available */
.ui-state-disabled, 
.ui-widget-content .ui-state-disabled, 
.ui-widget-header .ui-state-disabled {
	opacity: 0.35;
}

Days of the week header

↑ Back to top
/* Days of the week header background color */
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker th {
	background-color: #000000;
}
/* Days of the week header font color */
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker th {
	color: #000000;
}

Past and unavailable calendar days

↑ Back to top
/* Past and unavailable calendar days background color (not available) */
.ui-datepicker-calendar tbody {
	background-color: #000000;
}

Available calendar days

↑ Back to top
/* Available calendar days background color */
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker td.bookable a {
	background-color: #000000 !important;
}
/* Available calendar day hover background color */
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker td.bookable a:hover {
	background-color: #000000 !important;
}

Fully booked calendar days

↑ Back to top
/* Fully booked calendar days */
.wc-bookings-date-picker .ui-datepicker td.fully_booked a, 
.wc-bookings-date-picker .ui-datepicker td.fully_booked span {
	background-color: #000000 !important;
}
/* Fully booked calendar days color opacity */
 .wc-bookings-date-picker .ui-datepicker td.ui-state-disabled {
	opacity: .35;
 }

Days not bookable based on the availability rules

↑ Back to top
/* Days not bookable based on the availability rules */
.wc-bookings-date-picker .ui-datepicker td.not_bookable {
	background-color: #FFFFFF !important;
}

Today’s date on calendar

↑ Back to top
/* Today's date on calendar background color */ 
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker td.ui-datepicker-today a { 
	background-color: #000000 !important; 
}

Selected date

↑ Back to top
/* Selected date */ 
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker td.ui-datepicker-current-day a {
	background-color: #000000 !important; 
} 

Time Blocks

↑ Back to top
/* Time blocks */
#wc-bookings-booking-form .block-picker li a {
	background-color: #FFFFFF !important;
}

/* Time blocks hover */
#wc-bookings-booking-form .block-picker li a:hover {
	background-color: #000000 !important;
}

#wc-bookings-booking-form .block-picker li a.selected {
        background: #ff00ff !important;
        color: #ffff00 !important;
}

#wc-bookings-booking-form .block-picker li a.selected:focus {
        outline-color: #00ffff !important;
}

Selected time block

↑ Back to top
/* Selected time block */ 
#wc-bookings-booking-form .block-picker li a.selected { 
background: #ffffff !important; 
}

Booking costs block

↑ Back to top
/* Booking costs block  */
.wc-bookings-booking-form .wc-bookings-booking-cost {
        background: #00ff00;
        color: #ff0000;
}

Book now button

↑ Back to top
/* Book now button */

.wc-bookings-booking-form-button.single_add_to_cart_button {
background: #00ff00;
color: #ff0000;
}

wc-bookings-booking-form-button.single_add_to_cart_button:hover {
background: #ff0000;
color: #00ff00;
}
Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.