Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking WP ROCKET’s “remove unused css” function messes up the calendar
- This topic has 6 replies, 2 voices, and was last updated 1 year, 10 months ago by Gundula Uray.
- AuthorPosts
- January 15, 2023 at 5:10 am #1401523Gundula UrayParticipant
Hi,
I would like to use WP Rockets “remove unused css” function but as soon as I enable it it messes up the Check in check out calendar display on my landing page (https://holapp.at).
I had to disable the unused css option for now and enable the “load css async” option instead which is suboptimal.Could you please advise which css I should be excluding in WP Rocket with the “remove unused css” option.
regards
January 18, 2023 at 4:02 pm #1403233J. DavisKeymasterHi Gundula,
Thanks for your question. You may try to exclude the following files and directory:
/wp-content/plugins/motopress-hotel-booking/assets/css/datepick-themes/*
/wp-content/plugins/motopress-hotel-booking/assets/css/mphb.css
/wp-content/plugins/motopress-hotel-booking/assets/css/mphb.min.cssbest regards,
John DavisJanuary 19, 2023 at 6:45 am #1403472Gundula UrayParticipantHi John,
that did not work. The calendar design gets messed up. Did you test your code? Looks like you forgot to flush the cache? Could you please review and advise again. Regards.January 19, 2023 at 10:36 pm #1403722J. DavisKeymasterHi
I see you use the Booklium theme so you may also exclude the following file
/wp-content/themes/booklium/css/hotel-booking.css
best regards,
John DavisJanuary 21, 2023 at 9:31 am #1404326Gundula UrayParticipantHi John,
that helped a bit but it is still not displayed correctly. the popup with the datepicker is going into the background – looks like the z-index is not correct. it should have a higher value so that the popup with the datepicker is infront of everything else. Currently the background text is over the datepicker. What else do I need to exclude please?
And Yes I use both the hotel booking plugin and the booklium theme.
regards,
January 23, 2023 at 7:11 am #1405002J. DavisKeymasterThanks for your reply.
I’ve missed the following file that defines the z-index value for the date pick popup
/wp-content/plugins/motopress-hotel-booking/vendors/kbwood/datepick/jquery.datepick.css
Let me know if it is helpful.
best regards,
John DavisJanuary 28, 2023 at 7:23 am #1407478Gundula UrayParticipantThanks John – that worked!
For anyone else that might need this. These are actually the only 2 ones that are needed:
/wp-content/themes/booklium/css/hotel-booking.css
/wp-content/plugins/motopress-hotel-booking/vendors/kbwood/datepick/jquery.datepick.cssThanks -this can be closed
- AuthorPosts
- You must be logged in to reply to this topic.