Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking how to change the calendar style
- This topic has 9 replies, 5 voices, and was last updated 2 years, 8 months ago by Valeriia Bavykina.
- AuthorPosts
- September 4, 2018 at 9:54 am #714789BNBB ServicesParticipant
I have searched the forum for ways to change the look and feel of the hotel booking plugin. In on of the threats it states that the plugin is depending on the style of your WordPress theme. But…..
I use Enfold as WordPress theme and the calendar shown in the element datapicker of the shortcode mphb_availability doesn’t match the theme calendar as shown in a simple contact form.
Below is a screenshot of a page containing 4 types of forms.
On the upper left I’ve build a simple contactform using the avia layout builder.
On the upper right there is a mphb_availability form (without cass assigned).
On the lower left corner I’ve build a mphb_availability form using the code mphb_availability id=”493″ class=”avia_datepicker text_input hasDatepicker”. The class was copied from the source of the simple contact form.
On the lower right corner I’ve made a form using: mphb_availability id=”493″ class=”avia_ajax_form av-form-labels-visible avia-builder-el-1 avia-builder-el-no-sibling ”.Somehow I can change the way the calendar looks. Can you opint me in the right direction?
ps: I will build a second reply containing login cridentials for you to see the website. as the website is now blocked for anonimous visitors.
Best regards,
Bart
PS: The template mode in the Accomodation setting is set to “theme mode”, not “developer mode”.
- This topic was modified 6 years, 2 months ago by BNBB Services.
- This topic was modified 6 years, 2 months ago by BNBB Services.
- This topic was modified 6 years, 2 months ago by BNBB Services.
September 4, 2018 at 10:02 am #714798BNBB ServicesParticipantThis reply has been marked as private.September 4, 2018 at 3:12 pm #714905Stacy LindKeymasterHi Bart,
Calendars are the only element that comes with our styles. You can change its style in Accommodation > Settings.
In your case, the calendars can be fixed by adding the following to Appearance > Customize > Additional CSS..mphb-datepick-popup .datepick-month-year:first-child { width: 60% !important; } .mphb-datepick-popup .datepick-month-year { width: 40% !important; margin: 0px !important; padding: 0px 6px !important; } .mphb-datepick-popup .datepick-month-header { height: 2.5em !important; } .mphb-datepick-popup .datepick-month.first .datepick-month-header { display: flex; flex-direction: row; }
September 4, 2018 at 7:49 pm #714979BNBB ServicesParticipantHi Stacy,
At first I thought it didn’t change a thing. But then I noticed the layout of the calendar was changed.
Thanks for that.This problem is solved.
Now I am going to see if I can change the calendar into the enfold style. But that is out of the scope of this forum.Thanks again.
Best regards,
Bart
November 17, 2020 at 6:51 pm #1031412Zvonimir MatutinovicParticipantHi Stacy,
I would like to change the width of my calendar that is shown to the customer. Availability calendar. Would like to add a custom css, but I am not familiar with the css. Could you advise?
November 19, 2020 at 8:36 am #1032199Andre FloresModeratorHello Zvonimir,
You may perform changes to the availability calendar via custom CSS, e.g. add the following code under Appearance ->Customize ->Additional CSS:
.single-room-calendar-wrapper .mphb-calendar .datepick-month { width: 300px !important; }
Change 300px to any desired value to make months bigger.
Regards,
AndreJanuary 28, 2021 at 7:26 am #1066016Diana RobertsParticipantHow can I change the blocking color on the calendar and also change it to show Saturday to Saturday.
February 1, 2021 at 3:34 am #1067570Andre FloresModeratorHello Diana,
It depends on the calendar theme you are using, get back to us with the URL to example page, so I provide you with valid CSS code.
As for the showing the calendar Saturday to Saturday, I am afraid I did not quite get your point, kindly clarify what exactly you mean.Regards,
AndreMarch 7, 2022 at 10:02 am #1269961Jamie DimelowParticipantHi Andre,
Further from a post above. Is it possible to change the colour of the boxes behind the weekend dates within the calendar? This way the weekends and the weekdays match with the same colour rather than just being a white background.
I am not referring to the display options in settings as this doesn’t make a difference.
I would attach an image but I am not sure how too.
Thanks,
JamieMarch 8, 2022 at 6:08 am #1270375Valeriia BavykinaModeratorHi Jamie!
Please add the following code under Appearance -> Customize -> Additional CSS:
.mphb-available-date.datepick-weekend { background: #XXXXXX !important; }
Replace #XXXXXX with desired colors.
This is how it will look like: https://prnt.sc/QW6T-45ni8wL
- AuthorPosts
- You must be logged in to reply to this topic.