Skip to content

Instantly share code, notes, and snippets.

@woogists
Last active June 21, 2023 17:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save woogists/c17f4d2e44e9e920c24512412ebd942a to your computer and use it in GitHub Desktop.
Save woogists/c17f4d2e44e9e920c24512412ebd942a to your computer and use it in GitHub Desktop.
[WooCommerce Bookings] Calendar CSS Style Elements
/*
Modify the color styles of the WooCommerce Bookings datepicker calendar.
Add any/all of these styles to your theme's custom CSS, but be sure to change
the color hex codes to your choice. They're all black here.
*/
/* Month header background color */
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker-header {
background-color: #000000;
}
/* 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 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 background color (not available) */
.ui-datepicker-calendar tbody {
background-color: #000000;
}
/* 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 */
.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 */
.wc-bookings-date-picker .ui-datepicker td.not_bookable {
background-color: #FFFFFF !important;
}
/* 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;
}
/* 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;
}
/* Selected Date*/
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker td.ui-datepicker-current-day a {
background-color: #000000 !important;
}
/* Selected Time Block */
#wc-bookings-booking-form .block-picker li a.selected {
background: #ffffff !important;
}
@mccorkled
Copy link

mccorkled commented Dec 4, 2018

/* Selected Time Block */
#wc-bookings-booking-form .block-picker a.selected {
background: #000000 !important;
color: #000000 !important;
}

@woogists
Copy link
Author

/* Selected Time Block */
#wc-bookings-booking-form .block-picker a.selected {
background: #000000 !important;
color: #000000 !important;
}

Thanks, added!

@MNH1234
Copy link

MNH1234 commented Apr 25, 2021

I'm using WooCommerce Bookings, and Barcodes for Bookings. Is there anyway of changing the colour of a booking on the wp-amin, bookings, calendar, so that when a booking is 'checked in' it changes colour?

@pilinqn
Copy link

pilinqn commented Jun 21, 2023

I'm using WooCommerce Bookings. Is there anyway of changing the colour of a booking on the wp-amin, bookings, calendar, so that when a booking is 'checked in' it changes colour?

Thanks
Pilar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment