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.
Test your changes on a booking form after applying them. Check available and unavailable dates, selected states, hover, keyboard focus, and text contrast. Your theme can affect how the examples appear; if a style does not apply, inspect the rendered element and the CSS cascade.
CSS Styles
↑ Back to topBelow 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: set both background and text; remove the plugin gradient. */
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker-header {
background: #e5e7eb;
color: #111827;
}
Previous/Next month arrow
↑ Back to top/* Previous and next arrows. Check icon contrast in the active theme. */
#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: #e5e7eb;
}
/* Disabled navigation arrows. */
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker-prev.ui-state-disabled,
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker-next.ui-state-disabled {
opacity: 0.55;
}
Days of the week header
↑ Back to top/* Weekday headers. */
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker th {
background-color: #e5e7eb;
color: #111827;
}
Past and unavailable calendar days
↑ Back to top/* Past and unavailable dates; test theme-specific child styles. */
#wc-bookings-booking-form .ui-datepicker-calendar tbody {
background-color: #e5e7eb;
}
Available calendar days
↑ Back to top/* Available dates. */
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker td.bookable a {
background: #ffffff !important;
color: #111827 !important;
text-shadow: none;
}
/* Available date hover and keyboard focus. */
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker td.bookable a:hover,
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker td.bookable a:focus-visible {
background: #111827 !important;
color: #ffffff !important;
outline: 2px solid #111827;
outline-offset: 2px;
}
Fully booked calendar days
↑ Back to top/* Fully booked dates. */
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker td.fully_booked:not(.not_bookable_by_rules) span,
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker td.fully_booked:not(.not_bookable_by_rules) a {
background: #e5e7eb !important;
color: #111827 !important;
text-shadow: none;
}
/* Keep fully booked text legible; the date remains unavailable. */
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker td.fully_booked:not(.not_bookable_by_rules) {
opacity: 1;
}
Days not bookable based on the availability rules
↑ Back to top/* Dates unavailable under availability rules. */
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker td.not_bookable_by_rules {
background-color: #e5e7eb !important;
}
Today’s date on calendar
↑ Back to topThis example applies when today is available for selection. If today is unavailable, the calendar uses a different element and this rule does not apply.
/* Today: use the text color for a border. */
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker td.ui-datepicker-today a {
border: 2px solid currentColor !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: #111827 !important;
color: #ffffff !important;
}
Time Blocks
↑ Back to top/* Time blocks and hover. */
#wc-bookings-booking-form .block-picker li:not(.fully_booked):not(.unavailable) a {
background: #ffffff !important;
color: #111827 !important;
}
#wc-bookings-booking-form .block-picker li:not(.fully_booked):not(.unavailable) a:hover {
background: #111827 !important;
color: #ffffff !important;
}
Selected time block
↑ Back to top/* Selected time and keyboard focus. */
#wc-bookings-booking-form .block-picker li:not(.fully_booked):not(.unavailable) a.selected {
background: #111827 !important;
color: #ffffff !important;
}
#wc-bookings-booking-form .block-picker li:not(.fully_booked):not(.unavailable) a:focus-visible {
outline: 2px solid currentColor;
outline-offset: -2px;
}
Booking costs block
↑ Back to top/* Booking cost. */
#wc-bookings-booking-form .wc-bookings-booking-cost {
background: #ffffff;
color: #111827;
}
Book now button
↑ Back to top/* Book now button. */
.wc-bookings-booking-form-button.single_add_to_cart_button {
background: #ffffff;
color: #111827;
border: 2px solid #111827;
}
.wc-bookings-booking-form-button.single_add_to_cart_button:hover {
background: #111827;
color: #ffffff;
}
.wc-bookings-booking-form-button.single_add_to_cart_button:focus-visible {
outline: 2px solid #111827;
outline-offset: 2px;
}
Questions and support
↑ Back to topSomething missing from this documentation? Still have questions and need assistance?
- If you have a question about a specific extension or theme you’d like to purchase, contact us to get answers.
- If you already purchased this product and need some assistance, get in touch with a Happiness Engineer via our support page and select this product’s name from the Product dropdown.