Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Feature request: Shading or Different Colors for Imported Bookings
- This topic has 28 replies, 11 voices, and was last updated 3 years, 6 months ago by Karen Robinson.
- AuthorPosts
- April 20, 2020 at 3:51 am #943990Ryan LabelleParticipant
Hello! I have a feature request relating to Admin > Bookings Calendar: Shading or Different Colors for Imported Bookings
For all imported bookings, could we show the source of the booking (say, Airbnb or VRBO) in the booking block metadata display, and shade the booking block to differentiate them from MotoPress bookings? Could we follow the Airbnb practice of showing the source of the imported booking and using diagonal shading to differentiate them from native MotoPress bookings?
Thanks for your consideration.
Update: It looks like you already have a request for this.
April 22, 2020 at 3:03 pm #945189Andre FloresModeratorHello, Ryan!
Yes, such feature request already exists, I will gladly add your vote to it as well. If anybody else needs this feature, feel free to let me know by commenting this thread.
Regards,
AndreApril 22, 2020 at 7:26 pm #945272Ryan LabelleParticipantAwesome. Thanks!
April 23, 2020 at 2:35 pm #945663Andre FloresModeratorHi, Ryan!
You are most welcome.
I will contact you via e-mail once there is any update.Regards,
AndreApril 23, 2020 at 9:01 pm #945777Ryan LabelleParticipantAwesome.
April 24, 2020 at 2:24 pm #946082soledad FernandezParticipantHola! Adhiero a la solicitud de Ryan, los sombreados o colores son necesarios para identificar el origen. Me gustaría estar al tanto si surge una actualización. Gracias!
April 24, 2020 at 3:00 pm #946098Andre FloresModeratorHi there!
Thanks for your up-vote, it has been taking into account.
Regards,
AndreApril 24, 2020 at 4:52 pm #946202Thomas KolnowskiParticipantHello, Andre and MotoPress team. Please add us to the up-vote list. We are doing some of this with custom CSS, but having the option built into MotoPress Hotel Booking would be great.
Thomas Kolnowski
Digitized House Media, LLCApril 27, 2020 at 3:12 pm #947235Andre FloresModeratorHi, Thomas!
Done! Your up-vote has been counted. Meanwhile, you may share your custom CSS workaround with other users, it may be useful to them 😉
Regards,
AndreMay 9, 2020 at 5:58 pm #951985Thomas KolnowskiParticipantHi, Andre and team. Here is the custom CSS we are using to help style the calendar. We are synching with Airbnb and Glamping Hub currently. Here is what it looks like:
I hope this helps others in the community.
First, set the Calendar column width to 45px.
/* Set Admin Calendar Column width tp 45px (standard is 15px) */ .mphb-bookings-calendar-wrapper table.mphb-bookings-date-table td { min-width: 45px; }
Give Bookings Some Room to Breathe
/* Style All Bookings to Indent Text */ .mphb-bookings-calendar-wrapper table.mphb-bookings-date-table > tbody > tr > td .mphb-link-to-booking { left: 3px; word-wrap: normal; }
Now, Style All Bookings Based on MotoPress vs. OTA, Coloring the Cell Background and Text, and Adding Descriptive Text
/* Style MotoPress Bookings */ .mphb-date-second-part[title~="Adults:"] .mphb-link-to-booking::after { content: '\00A0'"[Web]"; } /* Style Airbnb (Not Available) Bookings */ .mphb-date-first-part[title~="(Not"] { background: #FFFFFF !important; } .mphb-date-second-part[title~="(Not"] { background: #FFA07A !important; } .mphb-date-second-part[title~="(Not"] .mphb-link-to-booking::after { content: '\00A0'"[Block]"; } .mphb-date-check-out-booked[title~="(Not"] { background: #FFA07A !important; } .mphb-date-booked[title~="(Not"] { background: #FFA07A !important; } .mphb-date-second-part[title~="(Not"] { background: #FFA07A !important; } /* Style Airbnb Bookings */ .mphb-date-second-part[title~="(Last"] { background: #008389 !important; } .mphb-date-second-part[title~="(Last"] .mphb-link-to-booking { color: #FFFFFF; } .mphb-date-second-part[title~="(Last"] .mphb-link-to-booking::after { content: '\00A0'"[Airbnb]"; color: #FFFFFF; } .mphb-date-booked[title~="(Last"] { background: #008389 !important; } .mphb-date-check-out-booked[title~="(Last"] { background: #008389 !important; } /* Style Glamping Hub Bookings */ .mphb-date-second-part[title~="CHECKOUT:"] { background: #005654 !important; } .mphb-date-second-part[title~="CHECKOUT:"] .mphb-link-to-booking { color: #FFFFFF; } .mphb-date-second-part[title~="CHECKOUT:"] .mphb-link-to-booking::after { content: '\00A0'"[Gl.Hub]"; color: #FFFFFF; } .mphb-date-booked[title~="CHECKOUT:"] { background: #005654 !important; } .mphb-date-check-out-booked[title~="CHECKOUT:"] { background: #005654 !important; } /* Style Glamping Hub Blocked Days Bookings */ .mphb-date-second-part[title*="Blocked days -"] { background: #005654 !important; } .mphb-date-second-part[title*="Blocked days -"] .mphb-link-to-booking { color: #FFFFFF; } .mphb-date-second-part[title*="Blocked days -"] .mphb-link-to-booking::after { content: '\00A0'"[Block]"; color: #FFFFFF; } .mphb-date-booked[title*="Blocked days -"] { background: #005654 !important; } .mphb-date-check-out-booked[title*="Blocked days -"] { background: #005654 !important; }
May 12, 2020 at 3:25 pm #952986Andre FloresModeratorHello, Thomas!
Thank you for sharing your insights, it is much appreciated! I am sure this will be very useful to other users.
Regards,
AndreAugust 16, 2020 at 8:06 pm #992273S SquaredParticipantHi Guys,
Where abouts do we add this CSS? Which CSS file and in parent or child theme?
Thanks in advanceAugust 17, 2020 at 7:51 am #992372Andre FloresModeratorHello there,
You may added the code right under Appearance ->Customize ->Additional CSS tab. If you prefer to use child theme, you may also add the code to any .css file under your child theme.
Regards,
AndreAugust 17, 2020 at 4:17 pm #992647Ryan LabelleParticipantThank you Thomas! That’s very generous of you.
August 17, 2020 at 4:41 pm #992661Thomas KolnowskiParticipantHappy to assist with moving the community forward, Ryan. This CSS has helped our client immensely differentiate between bookings from the various OTAs. The other thing it does is clearly flag those problematic Airbnb “not available” bookings that can come in during iCal synchs.
Thomas Kolnowski
Digitized House Media, LLC - AuthorPosts
- You must be logged in to reply to this topic.