Difference between revisions of "Custom CSS"

From Beds24 Wiki
Jump to navigation Jump to search
(370 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Category:Developer]]
+
[[Category:Developers]]
 
[[Category:Widgets]]
 
[[Category:Widgets]]
 
[[Category:Booking Page]]
 
[[Category:Booking Page]]
 +
[[Category:Account]]
 +
[[Category:Booking_Engine]]
 +
[[Category:Customise_Control_Panel]]
 +
<div class="heading">Custom CSS</div>
 +
This page gives custom CSS examples which can be used to customize the booking page or the control panel.
  
''This page gives CSS examples'
 
  
 
__TOC__
 
__TOC__
 +
= Booking Engine =
 +
== Property Booking Page ==
 +
<span class="" style="color: #f3e504; font-size: 250%;" >{{#fas:lightbulb}} </span>  Custom CSS can be added in {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE DEVELOPERS > "Custom CSS"
  
== Booking page ==
+
=== Force the Iframe to have a certain height ===
  
*Custom CSS can be added in SETTINGS > BOOKING PAGE > MULTIPLE PROPERTIES > DEVELOPERS > "Custom CSS"
+
/* Style for Extra Large Screen */
 +
@media (max-width:1199px) {
 +
iframe {
 +
height: 292px;
 +
}
 +
}
 +
 
 +
/* Style for Large Screen */
 +
@media (max-width:991px) {
 +
iframe {
 +
height: 2000px;
 +
}
 +
}
 +
 
 +
/* Style for Medium Screen */
 +
@media (max-width:767px) {
 +
iframe {
 +
height: 2200px;
 +
}
 +
}
  
*Custom CSS can be added in SETTINGS > BOOKING PAGE > DEVELOPERS > "Custom CSS"
+
/* Style for Small Screen */
 +
@media (max-width:575px) {
 +
iframe {
 +
height: 2500px;
 +
}
 +
}
  
 
=== Bigger room name ===
 
=== Bigger room name ===
 +
<code> .at_roomnametext{font-size: 14px;} /*if you want the text even bigger use a higher number*/</code>
 +
 +
=== Disable clicks on calendar selector===
  
.at_roomnametext{font-size: 14px;} /*if you want the text even bigger use a higher number*/
+
====Disable month back-and-forth toggle====
 +
<code> .monthcalendarhead{pointer-events: none;}</code>
  
=== Disable click on calendar===
+
====Disable clicks on dates====
.roomoffercalendarmonth{pointer-events: none;}
+
<code> .roomoffercalendarmonth{pointer-events: none;}</code>
  
.monthcalendarhead{pointer-events: auto;}
+
====Disable clicks only on dates not in pointer selection====
 +
<code> .roomoffercalendarmonth .daterequest,
 +
.roomoffercalendarmonth .dateavail {pointer-events: none;}</code>
  
=== Mark dates when check-out is not allowed (i.e. for rentals on a weekly basis)===
+
=== Mark days when check-in and/or check-out is not allowed (i.e. for rentals on a weekly basis) in the offer calendar===
 
To use this option you will need to set your check-in/check-out rules in the CALENDAR. It will not work for check-in and check-out restrictions only set in rates.  
 
To use this option you will need to set your check-in/check-out rules in the CALENDAR. It will not work for check-in and check-out restrictions only set in rates.  
  
NOTE: Limit the check-in and check-out in the CALENDAR (click on "Override") to use this function.
+
NOTE: Limit the check-out in the CALENDAR (click on "Override") to use this function.
 +
 
 +
To highlight when Check-out is not allowed :-
 +
 
 +
<code> .datenco{background-color:#f4f4f4; color:#cccccc;}</code>
 +
 
 +
To highlight when Check-in is not allowed :-
  
.datenco{background-color: #f4f4f4;color: #cccccc;}
+
<code> .datenci{background-color:#f4f4f4; color:#cccccc;}</code>
  
=== Background Image  ===
+
To highlight specific days then set the day with the appropriate colour :-  
To use a background image upload it to SETTINGS -> BOOKING PAGE -> PICTURES.
 
  
Replace https://www.beds24.com/pic/p0000/2049/04.jpg with the url of your uploaded picture.
+
<code> .daymon{background-color:#592323; color:#cccccc;}</code>
 +
<code> .daytue{background-color:#592323; color:#cccccc;}</code>
 +
<code> .daywed{background-color:#592323; color:#cccccc;}</code>
 +
<code> .daythu{background-color:#592323; color:#cccccc;}</code>
 +
<code> .dayfri{background-color:#592323; color:#cccccc;}</code>
 +
<code> .daysat{background-color:#592323; color:#cccccc;}</code>
 +
<code> .daysun{background-color:#592323; color:#cccccc;}</code>
  
  body{background-image:url(https://www.beds24.com/pic/p0000/2049/04.jpg);}
+
=== Background Image ===
 +
To use a background image upload it to {{#fas:cog}} (SETTINGS) > BOOKING ENGINE > PICTURES.
  
=== Shadow around your Booking Page (Adaptive Booking Page Only)===
+
Replace '<nowiki>https://beds24.com/pic/p0000/2049/04.jpg</nowiki>' with the url of your uploaded picture.
  
<nowiki>#</nowiki>bookingpage {
+
<code> body{background-image:url(<nowiki>https://beds24.com/pic/p0000/2049/04.jpg</nowiki>);}</code>
-webkit-box-shadow:0 1px 2px rgba(0, 10, 10, 0.38);
 
-moz-box-shadow:0 1px 2px rgba(0, 10, 10, 0.38);
 
box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.1);
 
box-shadow: 0 1px 2px rgba(0, 10, 10, 0.38);
 
margin-bottom: 20px;
 
}
 
  
=== Booking Page with Rounded Corners  (Adaptive Booking Page Only)===
+
=== Shadow around your Booking Page (Adaptive Booking Page only)===
 +
<code>.bookingpage {
 +
webkit-box-shadow:0 1px 2px rgba(0, 10, 10, 0.38);
 +
-moz-box-shadow:0 1px 2px rgba(0, 10, 10, 0.38);
 +
box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.1);
 +
box-shadow: 0 1px 2px rgba(0, 10, 10, 0.38);
 +
margin-bottom: 20px;}</code>
  
<nowiki>#</nowiki>bookingpage{border-radius:7px; -webkit-border-radius:7px; -moz-border-radius:7px;}
+
=== Booking Page with rounded corners (Adaptive Booking Page only)===
 +
<code>{border-radius:7px; -webkit-border-radius:7px; -moz-border-radius:7px;}</code>
  
 
=== Hide cents===
 
=== Hide cents===
 
+
<code>.bookingpagecents {display:none;}</code>
.bookingpagecents {display:none;}
 
  
 
=== Show prices with cents even if cents are zero ===
 
=== Show prices with cents even if cents are zero ===
 
+
<code>.bookingpagecentshide {display:inline;}</code>
.bookingpagecentshide {display:inline;}
 
  
 
=== Mark certain fields in the calendar selector===
 
=== Mark certain fields in the calendar selector===
Line 68: Line 116:
 
Example 1: Set the font color for the weekday heading of Monday ('Mon')
 
Example 1: Set the font color for the weekday heading of Monday ('Mon')
  
.dayMon{color:#c44a2f !important;}
+
<code>.dayMon{color:#c44a2f !important;}</code>
  
  
 
Example 2: Set the background color for the weekday heading of Monday ('Mon')
 
Example 2: Set the background color for the weekday heading of Monday ('Mon')
  
.dayMon{background-color:#c44a2f !important;}
+
<code>.dayMon{background-color:#c44a2f !important;}</code>
  
  
 
Example 3: Set the font color for all the dates that fall on a Saturday
 
Example 3: Set the font color for all the dates that fall on a Saturday
  
.daysat {color:#c44a2f !important;}
+
<code>.daysat{color:#c44a2f !important;}</code>
  
  
 
Example 4: Add a border around all the dates that fall on a Sunday
 
Example 4: Add a border around all the dates that fall on a Sunday
  
.daysat {border:1px solid #999999 !important;}
+
<code>.daysun{border:1px solid #999999 !important;}</code>
  
 
=== Add a border around the selected dates===
 
=== Add a border around the selected dates===
  .datestay{border: 1px solid #2f2f2f !important;}
+
<code>.datestay{border: 1px solid #2f2f2f !important;}</code>
 +
   
 +
<span class="" style="color: #f3e504; font-size: 150%;" >{{#fas:lightbulb}} </span>  If you use split dates the CSS is:
 +
<code>.prevdatestay, .datestay{border: 1px solid #2f2f2f !important;}</code>
  
 
=== Line through unavailable dates===
 
=== Line through unavailable dates===
.datenotavail {
+
<code>.datenotavail{text-decoration: line-through;}</code>
text-decoration: line-through;
+
 
}
+
=== Mark past dates with a different background and text colour===
 +
<code>.datepast{background-color: #xxxxxx; color: #xxxxxx;}</code>
  
=== Change width of hover image (adaptive booking page only)===
+
=== Change width of hover image (Adaptive Booking Page only)===
.ui-tooltip{max- width: 500px;}
+
<code>.ui-tooltip{max-width: 500px;}</code>
  
=== Remove the hover effect on pictures (adaptive booking page only)===
+
=== Remove the hover effect on pictures (Adaptive Booking Page only)===
img {
+
<code>img{pointer-events: none;}</code>
pointer-events: none;
 
}
 
  
=== Add a label above the room selector for multiple room bookings (responsive booking page only)===
+
=== Add a label above the room selector for multiple room bookings (Responsive Booking Page only)===
.roomofferqtyselectlabel {
+
<code>.roomofferqtyselectlabel{display: block;}</code>
display: block;}
 
  
=== Hide up button (responsive booking page only)===
+
=== Hide up button (Responsive Booking Page only)===
footer .button{
+
<code>footer .button{display: none;}</code>
display: none;
 
}
 
  
=== Add icons to descriptive texts (responsive booking page only)===
+
=== Add icons to descriptive texts (Responsive Booking Page only)===
 
[https://getbootstrap.com/docs/3.3/components/#glyphicons Bootstrap glyphicons] and [http://fontawesome.io/icons/ Font Awesome icons] can be added to the descriptive fields. To add icons the editor needs to be set to "Source"
 
[https://getbootstrap.com/docs/3.3/components/#glyphicons Bootstrap glyphicons] and [http://fontawesome.io/icons/ Font Awesome icons] can be added to the descriptive fields. To add icons the editor needs to be set to "Source"
  
 
Examples:
 
Examples:
  
<nowiki><span class="glyphicon glyphicon-user" aria-hidden="true"></span>
+
<code><nowiki><span class="glyphicon glyphicon-user" aria-hidden="true"></span></nowiki></code>
</nowiki>
+
 
 
will add a Bootstap  icon for a person.
 
will add a Bootstap  icon for a person.
  
<nowiki><i class="fa fa-bicycle" aria-hidden="true"></i>
+
<code><nowiki><i class="fa fa-bicycle" aria-hidden="true"></i></nowiki></code>
</nowiki>
+
 
 
will add a Font Awesomeicon for a bicycle.
 
will add a Font Awesomeicon for a bicycle.
  
  Note: Icons might disappear when the editor is opened again. In this case you will need to enter it again.
+
<span style=color:#fe746c;“ >{{#fas:exclamation-triangle}}  </span> Icons might disappear when the editor is opened again. In this case you will need to enter it again.
 +
 
 +
If you don not show the "Features" module on the booking page you will need to add
 +
 
 +
<code><link rel="stylesheet" href="include/font-awesome/fontawesome-pro-5.14.0-web/css/all.min.css"></code>
 +
 
 +
in the "Head" section in {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > DEVELOPER / {{#fas:cog}} (SETTINGS) BOOKING ENGINE > MULTIBOOKING PAGE > DEVELOPER.
 +
 
 +
=== Hide icons (Responsive Booking Page only)===
 +
<code>.b24fa{display:none;}</code>
 +
 
 +
<code>#b24scroller .input-group-addon{display:none;}</code>
 +
 
 +
=== Change text color of language selector and currency selector (Responsive Booking Page only)===
 +
<code>.b24languagedropdown .btn, .b24languagedropdown .btn.active, .b24languagedropdown .btn:active, .b24currencydropdown .btn, .b24currencydropdown .btn.active, .b24currencydropdown.btn:active {color:#fff;}</code>
 +
 
 +
=== Make language selector and currency selector a button (Responsive Booking Page only)===
 +
<code>.b24languagedropdown .btn, .b24languagedropdown .btn.active, .b24languagedropdown .btn:active, .b24currencydropdown .btn, .b24currencydropdown .btn.active, .b24currencydropdown.btn:active {background:white; padding:10px;}</code>
 +
 
 +
=== Hide currencies from the currency selector (Responsive Booking Page only) ===
 +
The currency class format is: '''.cur-XXX'''.
 +
 
 +
'''cur''' is the name of the class and '''XXX''' represents a country code: '''CAD''' = Canadian Dollars, '''GBP''' = British Pounds and so on.
 +
The country codes are:
 +
AUD, BHD, CAD, CLP, CRC, EUR, FJD, GBP, GEL, ILS, ISK, NZD, USD, BGN, BRL, CHF, CNY, CZK, DKK, HKD, HRK, HUF, HUF, IDR, INR, JPY, KRW, LBP, LKR, MAD, MMK, MXN, MYR, NOK, PHP, PLN, RON, RUB, SEK, SGD, THB, TRY, ZAR
 +
 
 +
This code will remove all currencies except for Euros, Swiss Francs and US Dollars:
 +
<code>.cur-AUD,.cur-BHD,.cur-CAD,.cur-CLP,.cur-CRC,.cur-FJD,.cur-GBP,.cur-GEL,.cur-ILS,.cur-ISK,.cur-NZD,.cur-BGN,.cur-BRL,.cur-CNY,.cur-CZK,.cur-DKK,.cur-HKD,.cur-HRK,.cur-HUF,.cur-HUF,.cur-IDR,.cur-INR,.cur-JPY,.cur-KRW,.cur-LBP,.cur-MAD,.cur-MMK,.cur-MXN,.cur-MYR,.cur-NOK,.cur-PHP,.cur-PLN,.cur-RON,.cur-RUB,.cur-SEK,.cur-SGD,.cur-THB,.cur-TRY,.cur-ZAR{display: none;}</code>
 +
 
 +
=== Remove 0 from adults or guests selector ===
 +
<code>#inputnumadult option[value="0"] {display:none !important;}</code>
 +
 
 +
=== Limit quantity selectors for upsell items ===
 +
By default all the quantity selectors have a range from 0 - 250. You can limit the range:
 +
 
 +
 
 +
Example 1: Set the range of the optional quantity selector for your 2nd upsell item (set 'Per Booking') to 0-4:
 +
 
 +
<code>#optextra2 option:nth-child(n+6){display:none;}</code>
 +
 
 +
 
 +
Example 2: Set the range of the optional quantity selector for your 5th upsell item (set 'Per Room/Person/Adult/Child') to 0-20:
 +
 
 +
<code>#optextraroom5 option:nth-child(n+22){display:none;}</code>
 +
 
 +
=== Hide Check-in / Check-out selector ===
 +
<code>.b24-selector-checkin{display:none;}</code>
 +
 
 +
<code>.b24-selector-checkout{display:none;}</code>
 +
 
 +
=== Hide number of nights selector ===
 +
<code>.b24-selector-numnight{display:none;}</code>
 +
 
 +
=== Change height of full-width slider ===
 +
<code>.fullwidthjumbopropslider .b24fullcontainer-proprow1 .b24-prop-slider .item {height: 500px;}</code>
 +
 
 +
<code>.fullwidthjumbopropslider .b24fullcontainer-proprow1 .b24-prop-slider  .carousel.slide{ height: 500px !important;}</code>
 +
 
 +
=== Hide the offer description on the check-out page===
 +
<code>.at_offersummary {display: none;}</code>
 +
 
 +
=== Show number of nights on mobiles===
 +
<code>.b24-selector-numnight { display: inline-block !important; }</code>
 +
 
 +
=== Hide room picture on check-out page===
 +
<code>.b24-guest-details-right img  {display: none;}</code>
 +
 
 +
=== Hide option to collect credit cards from Booking page if you want to use this option only for requests via Email===
 +
<code>.bp2bookcollectpayment .panel-pay-card{display:none;}</code>
 +
 
 +
=== Hide "Print Booking" on the confirmation screen===
 +
<code>.conf_p{display:none;}</code>
 +
 
 +
=== Hide "Click here to make another booking" on the confirmation screen===
 +
<code>.bookagainlink{display:none;}</code>
 +
 
 +
=== Adjust alignment for RTL languages (Arabic, Hebrew)===
 +
<code>.rtlinject{
 +
float: right;
 +
}
 +
.colorbody-he, .colorbody-he #bookingpage,
 +
.colorbody-ar, .colorbody-ar #bookingpage {
 +
text-align: right;
 +
}
 +
.colorbody-he .ssi_makeabooking, .colorbody-he .panel .fakelink,
 +
.colorbody-ar .ssi_makeabooking, .colorbody-ar .panel .fakelink{
 +
text-align: left;
 +
}
 +
.colorbody-he .datepicker, .colorbody-he .roomoffercalendarmonth td, .colorbody-he .ssi_makeabooking .colorbody-he .b24-guest-details-left, .colorbody-he .b24-guest-details-left.propconfirmbookmessage, .colorbody-he .b24-creditcard, .colorbody-he .b24-guest-details-left,
 +
.colorbody-ar .datepicker, .colorbody-ar .roomoffercalendarmonth td, .colorbody-ar .ssi_makeabooking .colorbody-ar .b24-guest-details-left, .colorbody-ar .b24-creditcard, .colorbody-ar .b24-guest-details-left.propconfirmbookmessage, .colorbody-ar .b24-guest-details-left {
 +
float: right;
 +
}
 +
.colorbody-he .book_bookingbackright, .colorbody-he .b24-guest-details-right, .colorbody-he .questionrow div:first-child, .colorbody-he .book_securelogo, .colorbody-he .ppcancelbutton,
 +
.colorbody-ar .book_bookingbackright, .colorbody-ar .b24-guest-details-right, .colorbody-ar .questionrow div:first-child, .colorbody-ar .book_securelogo, .colorbody-ar .ppcancelbutton{
 +
float: left;
 +
}
 +
.colorbody-he  .at_offersummary ul,
 +
.colorbody-ar  .at_offersummary ul{
 +
padding-right: 0;
 +
}
 +
.colorbody-he .booktextdiv,
 +
.colorbody-ar .booktextdiv{
 +
width: 100%;
 +
}
 +
.colorbody-he .b24-offer-cal , .colorbody-he .b24-offer-summary, .colorbody-he .b24-offer-slider {
 +
float: right;
 +
}
 +
</code>
 +
 
 +
=== Change colors of warnings===
 +
<code>.alert-danger  {
 +
color: #7e7602;
 +
background-color: #fcf8bd;
 +
border-color: #fcf8bd;
 +
}
 +
</code>
 +
 
 +
==MULTI PROPERTY BOOKING PAGE ==
 +
<span class="" style="color: #f3e504; font-size: 250%;" >{{#fas:lightbulb}} </span>  Custom CSS can be added in {{#fas:cog}} (SETTINGS) > BOOKING PAGE > MULTI BOOKING PAGE > DEVELOPERS > "Custom CSS"
 +
 
 +
=== Make search criteria always visible ===
 +
 
 +
<code>#collapseAdvancedSearch{height: auto; display:block !important;}</code>
 +
 
 +
<code>.b24-agencysearchlink{display:none;}</code>
 +
 
 +
=== Change height of full-width slider ===
 +
<code>.fullwidthjumboagencyslider .b24fullcontainer-ownerrow1  .b24-owner-slider .item {height: 600px;}</code>
 +
 
 +
<code>.fullwidthjumboagencyslider .b24fullcontainer-ownerrow1  .b24-owner-slider  .carousel.slide{height: 500px !important;}</code>
 +
 
 +
=== Limit the drop-down list for number of guests ===
 +
By default this list goes up to 99. You can limit it with the following code. Substitute X for the desired number + 2. So, if you want the drop-down list to be limited to 10 then X=12.
 +
 
 +
<code>#inputnumadult option:nth-child(n+6){display:none;}</code>
 +
 
 +
<code>#inputnumchild option:nth-child(n+6){display:none;}</code>
 +
 
 +
=== Adjust alignment for RTL languages (Arabic, Hebrew)===
 +
<code>.rtlinject{
 +
float: right;}
 +
.colorbody-he,
 +
.colorbody-ar {
 +
text-align: right;}
 +
.colorbody-he .b24-prop-module,
 +
.colorbody-he .datepicker, .
 +
colorbody-he .roomoffercalendarmonth td,
 +
.colorbody-ar .datepicker, .
 +
colorbody-ar .roomoffercalendarmonth td{
 +
float: right;}
 +
.colorbody-he .at_propnametext,
 +
.colorbody-ar .at_propnametext {
 +
padding-right: 10px;
 +
}
 +
</code>
 +
 
 +
=== Hide Property Name ===
 +
This will remove the individual property names from the Multi Property booking page.
 +
 
 +
<code>.at_propnametext {display: none;}</code>
 +
 
 +
== BOOKING WIDGETS ==
 +
<span class="" style="color: #f3e504; font-size: 250%;" >{{#fas:lightbulb}} </span>  CSS needs to be added directly in your web site
 +
 
 +
===Change the hover-color in the datepicker calendar ===
 +
 
 +
<code>.book-widget .ui-datepicker td .ui-state-active, .book-widget .ui-datepicker td .ui-state-hover, .book-widget.ui-datepicker td .ui-state-active, .book-widget.ui-datepicker td .ui-state-hover {background-color:#ffffff!important; color:#000000!important}</code>
 +
 
 +
===Make only Saturdays clickable in the datepicker calendar ===
 +
<code>.book-widget .ui-datepicker tr > :nth-child(1), .book-widget .ui-datepicker tr > :nth-child(2), .book-widget .ui-datepicker tr > :nth-child(3), .book-widget .ui-datepicker tr > :nth-child(4), .book-widget .ui-datepicker tr > :nth-child(5), .book-widget. ui-datepicker tr > :nth-child(7){pointer-events: none;}</code>
 +
 
 +
= INVOICES and PRINT TEMPLATES =
 +
Custom CSS can be added in {{#fas:cog}} (SETTINGS) > GUEST MANAGEMENT > STYLING > "Custom CSS"
 +
 
 +
=== Center invoice on the screen and set overall font size===
 +
<code>body {text-align: center; font-size: 16px;}</code>
 +
 
 +
=== Set font size of property name ===
 +
<code>#invoicepropname{font-size: 24px;}</code>
 +
 
 +
=== Set font size of address ===
 +
<code>#invoiceaddress{font-size: 18px; padding-bottom: 50px;}</code>
 +
 
 +
=== Set font size of the invoice table ===
 +
<code>.confirmationtable{font-size: 16px;}</code>
 +
 
 +
=== Change margin===
 +
<code>.printbooking2 {margin: 20px;}</code>
 +
 
 +
=== TBC ===
 +
<code>#invoicetable{margin-left:auto; margin-right:auto;}</code>
 +
 
 +
=== TBC ===
 +
<code>#invoiceprinttime{font-size: 12px;}</code>
 +
 
 +
=== Hide edit button in the invoice ===
 +
<code>#iconedit {display: none;}</code>
 +
 
 +
=== Align all table content right ===
 +
<code>.conf_subheadercenter, .conf_numbercenter{text-align: right !important;}</code>
 +
 
 +
= CONTROL PANEL =
 +
Custom CSS can be added in:
 +
*Click on the 'User' icon on the top right and then on 'Account Management (in the old control panel SUB ACCOUNT in the top right) then on ACCOUNT LIST to apply for all sub accounts
 +
*Click on the 'User' icon on the top right and then on 'Account Management (in the old control panel SUB ACCOUNT in the top right) then on  ACCOUNT LIST > MANAGE ACCOUNT to apply for a specific sub account
 +
 
 +
==Navigation==
 +
===Hide SUPPORT button===
 +
<code>.navbar-top .btngroupdropdown{display: none}</code>
 +
 
 +
===Hide page help icon on the right===
 +
<code>.opener-right{display: none}</code>
 +
 
 +
===Change header background color===
 +
<code>.fixed-top {background-color: #cccccc;}</code>
 +
 
 +
===Hide "Settings" icon in left column===
 +
<code>.#c3sidebarCollapse{display: none !important;} {display: none;}</code>
 +
 
 +
===Hide "Price Checker Tool" button===
 +
<code>.b24btn_PriceCheck {display: none}</code>
 +
 
 +
===Hide "Try the new calendar" link===
 +
<code>.tryTheNewCalendar {display: none;}</code>
 +
 
 +
== Dynamic Multi-Calendar ==
 +
===Hide "Intelligence" icon===
 +
<code>.sticky-left .row-intelligence-button{display: none;}</code>
 +
===Hide "Help" icon in left column===
 +
<code>.sticky-left .row-help-button  {display: none;}</code>
 +
===Hide Drag&Drop option===
 +
<code>#dragDropButton  {display: none;}</code>
 +
===Hide "Notes" icon in left column===
 +
<code>.sticky-left .fa-comment-alt-plus, .sticky-left .fa-comment-alt-lines {display: none;}</code>
 +
===Hide "Intelligence" icon===
 +
<code>.sticky-left .row-intelligence-button{display: none;}</code>
 +
===Hide Group booking icons===
 +
<code>.fa-circle{display: none;}</code>
 +
===Display occupancy as color instead of number===
 +
<code>.calendar2 .property-stats-wrapper
 +
{margin-top: 5px;}
 +
.calendar2 .property-stats-wrapper.empty {
 +
display: inline-block;
 +
background-color: #7AAB0A;
 +
height: 10px;
 +
width: 10px;
 +
border-radius: 50%;
 +
color: transparent;
 +
}
 +
.calendar2 .property-stats-wrapper.medium {
 +
display: inline-block;
 +
background-color:  #fe746c;
 +
height: 10px;
 +
width: 10px;
 +
border-radius: 50%;
 +
color: transparent;
 +
}</code>
 +
===Change the backgound color of weekends (Saturday/Sunday)===
 +
<code>.th-sat, .th-sun {background-color:#ffceaf !important;}</code>
 +
===Change the backgound color of past dates===
 +
<code>.pastdate{background-color:#d7d7d7;}</code>
 +
===Hide Intelligence button===
 +
<code>.sticky-left .row-intelligence-button{display: none;}</code>
 +
===Hide contect help===
 +
<code>.sticky-left .row-help-button {display: none;}</code>
 +
===Change color of unavailable dates ===
 +
<code>.inv0 { color: blue }</code>
 +
 
 +
===Change color and background color of daily prices===
 +
<code>.price { background-color:#7cc576; color:white;}</code>
 +
===Make inventory row read-only===
 +
<code>.calendar2 .row-room {
 +
pointer-events: none;
 +
}</code>
 +
 
 +
===Make Daily Price row read-only===
 +
<code>.row-price{
 +
pointer-events: none;
 +
}</code>
 +
 
 +
===Change background and font color for "Unallocated" bookings===
 +
<code>..pagetypecalendar2 .overflow-unit{ background-color: #FEE0DD; color: #9E4843;}</code>
 +
 
 +
===Hide the option to create or change views===
 +
<code>#view-templates-button{
 +
display: none;
 +
}</code>
 +
 
 +
===Disable the option to create or change views===
 +
<code>#view-templates-button, #saveViewButton{
 +
pointer-events: none;
 +
}</code>
 +
 
 +
== Old Calendar ==
 +
===Hide "Show" in the CALENDAR===
 +
<code>.dashgridshowfilter {display:none;}</code>
 +
 
 +
===Hide "Override row" in the CALENDAR===
 +
<code>.dashgrid_rowtype1{display:none;}</code>
 +
 
 +
===Hide item from dropdown for rooms in the CALENDAR===
 +
<code>.dashgrid_rowroomname .dropdown ul.dropdown-menu li:nth-child(3) {display:none !important;}</code>
 +
 
 +
===Hide suitcase icon (add booking) from CALENDAR===
 +
<code>.icon-suitcase, .fa-suitcase {display:none}</code>
 +
 
 +
===Hide  button 'Add Booking' from CALENDAR===
 +
<code>.b24btn_AddBooking{display:none}</code>
 +
 
 +
===Display red when inventory is 0===
 +
<code>.inv0 .dashgrid_inventory{color:red;}</code>
 +
 
 +
===Show weekends (Saturday/Sunday) in a different color===
 +
<code>.weekend2{background-color:red;}</code>
 +
 
 +
===Show a certain day of the week in red===
 +
Substitute X with the number of the weekday: Monday=1, Tuesday=2, Wednesday=3, Thursday=4, Friday=5, Saturday=6, Sunday=7
 +
<code>.caldayX{background-color:red;}</code>
 +
 
 +
===Show today in red===
 +
<code>.todaydate{background-color:red;}</code>
 +
 
 +
===Show past dates in a different color===
 +
<code>.pastdate{background-color:grey;}</code>
 +
 
 +
===Display room name and icons in one line===
 +
<code>.dashgrid_rowroomname{display:inline;}</code>
 +
 
 +
<code>.editroomlink{padding-left: 2px;}</code>
 +
 
 +
===Warning color dates not selling===
 +
<code> .dashgrid_inventory_nap{background-color: red; color: white;}</code>
 +
 
 +
== Dashboard ==
 +
===Hide the Dashboard selector (drop-down menu) from DASHBOARD===
 +
<code>.dashcontrol #dashid{display: none !important}</code>
 +
 
 +
===Hide the "Padlock" menu from DASHBOARD===
 +
<code>.dashcontrol .dropdown{display: none !important}</code>
 +
 
 +
=== Hide a certain column in the Departures Table on the DASHBOARD===
 +
<code>.mobiledeparture tr > *:nth-child(X) {display: none;}</code>
 +
 
 +
===Hide the "Add Booking" from mobile DASHBOARD===
 +
<code>.mobiledashaddbooking{display:none;}</code>
 +
 
 +
===Hide room on Housekeeping Units and Housekeeping Bookings modules====
 +
 
 +
.widgettype-units .roomrowclassXXX {display: none;} /* replace XXX with the room ID*/
 +
 
 +
===Hide  column on the dashboard tables===
 +
Change the child number in brackets to the desired column.
 +
 
 +
<code>.dashboardtable th:nth-child(9) {display:none;}</code>
 +
 
 +
===Hide  Edit button in the Notes component===
 +
Change the child number in brackets to the desired column.
 +
 
 +
<code>#dashboardnotea  .btn {display:none;}</code>
 +
 
 +
==Align the content of a column right==
 +
<code>  .bookingtable  td:nth-child(8) {text-align: right;} </code>
 +
 
 +
== Guests Menu ==
 +
 
 +
=== Hide a certain row in the "Info" tab  on  GUESTS===
 +
<code>.pagetypeguests .viewguest .table tr:nth-child(x) {display: none; }</code>
 +
 
 +
== Bookings Menu ==
 +
=== Hide property name in the BOOKING GRID ===
 +
<code>.bookgrid_rowpropname{display: none;}</code>
 +
 
 +
=== Hide room name in the BOOKING GRID ===
 +
<code>.bookgrid_rowroomname{display: none;}</code>
 +
 
 +
=== Hide room name in the BOOKING GRID ===
 +
<code>. pagetypebookingsgrid .todaydate{font-weight:bold;}</code>
 +
 
 +
=== Hide a certain column in the BOOKING LIST Table ===
 +
<code>.pagetypebookingslist .bookingtable tr > *:nth-child(X) {display: none;}</code>
 +
 +
Examples:
 +
 
 +
<code>.pagetypebookingslist .bookingtable tr > *:nth-child(2) {display: none;}</code> will hide the first column which is 'Number'.
 +
 
 +
<code>.pagetypebookingslist .bookingtable tr > *:nth-child(11) {display: none;}</code>  will hide the tenth column which is 'Email'.
 +
 
 +
===Hide  column on the BOOKINGS table===
 +
Change the child number in brackets to the desired column.
 +
 
 +
<code> .bookingtable  th:nth-child(12) {display:none;} </code>
 +
 
 +
===Hide  cancelled bookings BOOKINGS list===
 +
<code>.pagetypebookingslist  .cancelbooking{display:none;} </code>
 +
 
 +
=== Hide cancelled bookings in the BOOKINGS Table ===
 +
<code>.bookingtable .cancelbooking {display:none;}</code>
 +
 
 +
=== Hide "Export" button ===
 +
<code>.b24btn_ExportBookings {display:none;}</code>
 +
 
 +
===Disable moving of bookings===
 +
<code> .pagetypebookingsgrid table {pointer-events: none;}</code>
 +
 
 +
== Fixed Prices Menu ==
 +
===Hide column on the Fixed Prices table===
 +
Change the child number in brackets to the desired column.
 +
 
 +
<code> .ratetable th:nth-child(9) {display:none;} </code>
 +
 
 +
== Reports Menu ==
 +
=== Limit selector list for custom reports ===
 +
 
 +
Example: Limit the list to reports 1 - 3:
 +
 
 +
<code>#reportid option:nth-child(n+4){display:none;}</code>
 +
 
 +
=== Hide a certain field from 'Available Columns' ===
 +
 
 +
Example: Hide the 'Email' field
 +
 
 +
<code>.pagetypereports2 #guestemail {display: none;}</code>
 +
 
 +
 
 +
== Settings Menu ==
 +
=== Hide the "Delete" button for properties ===
 +
<code>.pagetypeproperties .b24btn_delete{display:none;}</code>
 +
 
 +
=== Hide the "Delete" button for rooms ===
 +
<code>.pagetyperooms .b24btn_delete{display:none;}</code>
 +
 
 +
==Booking Popup==
 +
===Hide 'Open in new Window' link===
 +
<code>.pagetypeajaxbookedit.openinnewwindow{display:none;}</code>
 +
 
 +
=== Charges & Payments ===
 +
====Hide the VAT column====
 +
<code>.pagetypeajaxbookedit .invoicetablevat {display: none;}</code>
 +
 
 +
Please note: This will not hide the title column (Vat %). See for yourself if you can live with it.
 +
 
 +
====Prevent invoice items being deleted====
 +
<code>.tr_invoicee .btn-danger, #groupinvoicebulkaction option[value="1"] {display:none !important;}</code>
 +
 
 +
</code>
 +
 
 +
====Prevent manual entry of charge items  ====
 +
<code>.chargenewitemtr input {pointer-events: none;}</code>
 +
 
 +
====Prevent manual entry of payment items  ====
 +
<code>.paymentnewitemtr input {pointer-events: none;}</code>
 +
 
 +
=== Functions and Buttons ===
 +
====Hide the checkout selector====
 +
<code>.pagetypeajaxbookedit #checkout{display:none;}</code>
 +
 
 +
====Hide the 'Delete' button====
 +
<code>.pagetypeajaxbookedit .deletebookingbutton{display:none;}</code>
 +
 
 +
====Hide the 'Add Booking' button====
 +
<code>.icon-suitcase, .b24btn_AddBooking{display:none;}</code>
 +
 
 +
====Hide the 'Copy as new' button====
 +
<code>.pagetypeajaxbookedit #bookingcopyasnewbutton{display:none;}</code>
 +
 
 +
====Hide the 'Print' button====
 +
<code>.pagetypeajaxbookedit #bookingprintbutton{display:none;}</code>
 +
 
 +
====Hide the 'Assign Invoice Number' button====
 +
<code>.pagetypeajaxbookedit .b24btn_AssignInvoiceNumber{display:none;}</code>
 +
 
 +
German control panel:
 +
 
 +
<code>.pagetypeajaxbookedit .b24btn_Rechnungsnummererzeugen{display:none;}</code>
 +
 
 +
====Hide the 'Template' buttons====
 +
<code>.pagetypeajaxbookedit #bookingtemplate1button{display:none;}</code>
 +
 
 +
<code>.pagetypeajaxbookedit #bookingtemplate2button{display:none;}</code>
 +
 
 +
<code>.pagetypeajaxbookedit #bookingtemplate3button{display:none;}</code>
 +
 
 +
====Hide the 'Continue anyway' buttons====
 +
<code>.statusmsg .btn{display: none}</code>
 +
 
 +
====Prevent changes of the "Status" field"====
 +
.menusetting-status{pointer-events: none;}
 +
 
 +
=== Hide Specific Fields ===
 +
====TAB Summary====
 +
 
 +
Guest title
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-guesttitle{display:none;}</code>
 +
 
 +
Last Name
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-guestname{display:none;}</code>
 +
 
 +
Guest comments
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-guestcomments{display:none;}</code>
 +
 
 +
Notes
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-hostcomments{display:none;}</code>
 +
 
 +
Adults
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-numadults{display:none;}</code>
 +
 
 +
Children
 +
 +
<code>.pagetypeajaxbookedit .menusetting-numchild{display:none;}</code>
 +
 
 +
Telephone
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-guestphone{display:none;}</code>
 +
 
 +
Mobile
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-guestmobile{display:none;}</code>
 +
 
 +
Fax
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-guestfax{display:none;}</code>
 +
 
 +
Address
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-guestaddress{display:none;}</code>
 +
 
 +
City
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-guestcity{display:none;}</code>
 +
 
 +
Postcode
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-guestpostcode{display:none;}</code>
 +
 
 +
Country (manual entry)
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-guestcountry{display:none;}</code>
 +
 
 +
Country (drop-down list)
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-guestcountry2{display:none;}</code>
 +
 
 +
Status
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-status{display:none;}</code>
 +
 
 +
Room Selector
 +
<code>.pagetypeajaxbookedit .menusetting-roomid{display:none;}</code>
 +
 
 +
 
 +
====TAB Detail====
 +
Message
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-hostmessage{display:none;}</code>
 +
 
 +
Custom Questions (X = number of custom question)
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-guestcustqX{display:none;}</code>
 +
 
 +
Reference
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-ownerreference{display:none;}</code>
 +
 
 +
Quantity
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-qty{display:none;}</code>
 +
 
 +
Cancellable
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-stopcancel{display:none;}</code>
 +
 
 +
Flag
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-flagtext{display:none;}</code>
 +
 
 +
Status Code
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-statuscode{display:none;}</code>
 +
 
 +
Created in Account
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-Createdinaccount{display:none;}</code>
 +
 
 +
Original Referrer
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-OriginalReferrer{display:none;}</code>
 +
 
 +
Time Entered
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-TimeEntered{display:none;}</code>
 +
 
 +
IP Address
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-IPAddress{display:none;}</code>
 +
 
 +
API Message
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-apimessage{display:none;}</code>
 +
 
 +
Guest Database
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-isguest{display:none;}</code>
 +
 
 +
====TAB Mail & Actions====
 +
Email
 +
 
 +
<code>.pagetypeajaxbookedit .menusetting-guestemail{display:none;}</code>
 +
 
 +
==Add Booking==
 +
====Prevent price to be changed====
 +
<code>..pagetypeajaxbookedit .menusetting-unitprice, .pagetypeajaxbookedit .menusetting-price { pointer-events: none;}</code>
 +
 
 +
==Reports ==
 +
<span class="" style="color: #f3e504; font-size: 250%;" >{{#fas:lightbulb}} </span>  Custom CSS can be added in {{#fas:cog}} (SETTINGS)  > GUEST MANAGEMENT > STYLING > "Custom CSS"
 +
 
 +
=== Hide a the "Booking Notes" column  in the Daily Unit Activity report===
 +
<code>.reportdailyunitactivity th > *:nth-child(9) {display: none;}</code>
 +
 
 +
<code>.reportdailyunitactivity td > *:nth-child(9) {display: none;}</code> 
 +
 
 +
== Miscellaneous ==
 +
 
 +
===Change the blue Login button on the initial Beds24 page (resellers only)===
 +
<code>.pagetypelogin .b24btn_Login{background-color:#xxxxxx;}</code>
 +
 
 +
=== Hide the "Stripe" button ===
 +
<code>#makechargeusing{display:none;}</code>
 +
 
 +
=== Hide the Stripe "Refund" button ===
 +
<code>#b24btn_Refund{display:none;}</code>
  
=== Hide icons (responsive booking page only)===
+
If your are using the control panel in another language than English you might need to replace the word Refund with what you see on the button.
.b24fa{
 
display: none;
 
}
 
  
#b24scroller .input-group-addon{
+
=== Hide potential issue "Less than 12 months available"===
display: none;
+
<code>.warninglessthan12monthsavailable{ display: none}</code>
}
 
  
=== Change text color of language selector and currency selector (responsive booking page only)===
+
=== Hide potential issue "Too many guests in booking xxxxx"===
#topofthebookingpage{
+
<code>..warningunitnotassigned{ display: none}</code>
color: #ffffff
 
}
 
  
exchange ffffff with the hex code of the color you want to use.
+
=== Hide 'Template 2' from Guest Management  > Booking Templates ===
 +
<code>.pagetypecommunicationbooktemplate #settingformid .background_boxprop:nth-of-type(2){display:none;}</code>
  
=== Make language selector and currency selector a button (responsive booking page only)===
+
=== Hide the option to unlock invoices===
.b24languagedropdown .btn, .b24languagedropdown .btn.active, .b24languagedropdown .btn:active, .b24currencydropdown .btn, .b24currencydropdown .btn.active,        .b24currencydropdown.btn:active {
+
<code>.menusetting-invoicelock {display:none;}</code>
background: white;
 
padding: 10px;
 
}
 

Revision as of 15:33, 30 April 2024

Custom CSS
This page gives custom CSS examples which can be used to customize the booking page or the control panel.


Contents

1 Booking Engine

1.1 Property Booking Page

Custom CSS can be added in (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE DEVELOPERS > "Custom CSS"

1.1.1 Force the Iframe to have a certain height

/* Style for Extra Large Screen */ @media (max-width:1199px) { iframe { height: 292px; } }

/* Style for Large Screen */ @media (max-width:991px) { iframe { height: 2000px; } }

/* Style for Medium Screen */ @media (max-width:767px) { iframe { height: 2200px; } }

/* Style for Small Screen */ @media (max-width:575px) { iframe { height: 2500px; } }

1.1.2 Bigger room name

.at_roomnametext{font-size: 14px;} /*if you want the text even bigger use a higher number*/

1.1.3 Disable clicks on calendar selector

1.1.3.1 Disable month back-and-forth toggle

.monthcalendarhead{pointer-events: none;}

1.1.3.2 Disable clicks on dates

.roomoffercalendarmonth{pointer-events: none;}

1.1.3.3 Disable clicks only on dates not in pointer selection

.roomoffercalendarmonth .daterequest, .roomoffercalendarmonth .dateavail {pointer-events: none;}

1.1.4 Mark days when check-in and/or check-out is not allowed (i.e. for rentals on a weekly basis) in the offer calendar

To use this option you will need to set your check-in/check-out rules in the CALENDAR. It will not work for check-in and check-out restrictions only set in rates.

NOTE: Limit the check-out in the CALENDAR (click on "Override") to use this function.

To highlight when Check-out is not allowed :-

.datenco{background-color:#f4f4f4; color:#cccccc;}

To highlight when Check-in is not allowed :-

.datenci{background-color:#f4f4f4; color:#cccccc;}

To highlight specific days then set the day with the appropriate colour :-

.daymon{background-color:#592323; color:#cccccc;} .daytue{background-color:#592323; color:#cccccc;} .daywed{background-color:#592323; color:#cccccc;} .daythu{background-color:#592323; color:#cccccc;} .dayfri{background-color:#592323; color:#cccccc;} .daysat{background-color:#592323; color:#cccccc;} .daysun{background-color:#592323; color:#cccccc;}

1.1.5 Background Image

To use a background image upload it to (SETTINGS) > BOOKING ENGINE > PICTURES.

Replace 'https://beds24.com/pic/p0000/2049/04.jpg' with the url of your uploaded picture.

body{background-image:url(https://beds24.com/pic/p0000/2049/04.jpg);}

1.1.6 Shadow around your Booking Page (Adaptive Booking Page only)

.bookingpage { webkit-box-shadow:0 1px 2px rgba(0, 10, 10, 0.38); -moz-box-shadow:0 1px 2px rgba(0, 10, 10, 0.38); box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 2px rgba(0, 10, 10, 0.38); margin-bottom: 20px;}

1.1.7 Booking Page with rounded corners (Adaptive Booking Page only)

{border-radius:7px; -webkit-border-radius:7px; -moz-border-radius:7px;}

1.1.8 Hide cents

.bookingpagecents {display:none;}

1.1.9 Show prices with cents even if cents are zero

.bookingpagecentshide {display:inline;}

1.1.10 Mark certain fields in the calendar selector

You can highlight both the headings of the calendar (i.e. Mon, Tue, Wed, Thu, Fri, Sat, Sun) and all the dates that fall on a given day of the week (i.e. all 4 or 5 dates that fall on a Saturday).

Headings = '.dayMon' (or dayTue, dayWed, dayThu, dayFri, daySat, daySun)

Dates = '.daymon' (or daytue, dayewed, daythu, dayfri, daysat, daysun)


Example 1: Set the font color for the weekday heading of Monday ('Mon')

.dayMon{color:#c44a2f !important;}


Example 2: Set the background color for the weekday heading of Monday ('Mon')

.dayMon{background-color:#c44a2f !important;}


Example 3: Set the font color for all the dates that fall on a Saturday

.daysat{color:#c44a2f !important;}


Example 4: Add a border around all the dates that fall on a Sunday

.daysun{border:1px solid #999999 !important;}

1.1.11 Add a border around the selected dates

.datestay{border: 1px solid #2f2f2f !important;}

If you use split dates the CSS is: .prevdatestay, .datestay{border: 1px solid #2f2f2f !important;}

1.1.12 Line through unavailable dates

.datenotavail{text-decoration: line-through;}

1.1.13 Mark past dates with a different background and text colour

.datepast{background-color: #xxxxxx; color: #xxxxxx;}

1.1.14 Change width of hover image (Adaptive Booking Page only)

.ui-tooltip{max-width: 500px;}

1.1.15 Remove the hover effect on pictures (Adaptive Booking Page only)

img{pointer-events: none;}

1.1.16 Add a label above the room selector for multiple room bookings (Responsive Booking Page only)

.roomofferqtyselectlabel{display: block;}

1.1.17 Hide up button (Responsive Booking Page only)

footer .button{display: none;}

1.1.18 Add icons to descriptive texts (Responsive Booking Page only)

Bootstrap glyphicons and Font Awesome icons can be added to the descriptive fields. To add icons the editor needs to be set to "Source"

Examples:

<span class="glyphicon glyphicon-user" aria-hidden="true"></span>

will add a Bootstap icon for a person.

<i class="fa fa-bicycle" aria-hidden="true"></i>

will add a Font Awesomeicon for a bicycle.

Icons might disappear when the editor is opened again. In this case you will need to enter it again.

If you don not show the "Features" module on the booking page you will need to add

<link rel="stylesheet" href="include/font-awesome/fontawesome-pro-5.14.0-web/css/all.min.css">

in the "Head" section in (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > DEVELOPER / (SETTINGS) BOOKING ENGINE > MULTIBOOKING PAGE > DEVELOPER.

1.1.19 Hide icons (Responsive Booking Page only)

.b24fa{display:none;}

#b24scroller .input-group-addon{display:none;}

1.1.20 Change text color of language selector and currency selector (Responsive Booking Page only)

.b24languagedropdown .btn, .b24languagedropdown .btn.active, .b24languagedropdown .btn:active, .b24currencydropdown .btn, .b24currencydropdown .btn.active, .b24currencydropdown.btn:active {color:#fff;}

1.1.21 Make language selector and currency selector a button (Responsive Booking Page only)

.b24languagedropdown .btn, .b24languagedropdown .btn.active, .b24languagedropdown .btn:active, .b24currencydropdown .btn, .b24currencydropdown .btn.active, .b24currencydropdown.btn:active {background:white; padding:10px;}

1.1.22 Hide currencies from the currency selector (Responsive Booking Page only)

The currency class format is: .cur-XXX.

cur is the name of the class and XXX represents a country code: CAD = Canadian Dollars, GBP = British Pounds and so on. The country codes are:

AUD, BHD, CAD, CLP, CRC, EUR, FJD, GBP, GEL, ILS, ISK, NZD, USD, BGN, BRL, CHF, CNY, CZK, DKK, HKD, HRK, HUF, HUF, IDR, INR, JPY, KRW, LBP, LKR, MAD, MMK, MXN, MYR, NOK, PHP, PLN, RON, RUB, SEK, SGD, THB, TRY, ZAR

This code will remove all currencies except for Euros, Swiss Francs and US Dollars: .cur-AUD,.cur-BHD,.cur-CAD,.cur-CLP,.cur-CRC,.cur-FJD,.cur-GBP,.cur-GEL,.cur-ILS,.cur-ISK,.cur-NZD,.cur-BGN,.cur-BRL,.cur-CNY,.cur-CZK,.cur-DKK,.cur-HKD,.cur-HRK,.cur-HUF,.cur-HUF,.cur-IDR,.cur-INR,.cur-JPY,.cur-KRW,.cur-LBP,.cur-MAD,.cur-MMK,.cur-MXN,.cur-MYR,.cur-NOK,.cur-PHP,.cur-PLN,.cur-RON,.cur-RUB,.cur-SEK,.cur-SGD,.cur-THB,.cur-TRY,.cur-ZAR{display: none;}

1.1.23 Remove 0 from adults or guests selector

#inputnumadult option[value="0"] {display:none !important;}

1.1.24 Limit quantity selectors for upsell items

By default all the quantity selectors have a range from 0 - 250. You can limit the range:


Example 1: Set the range of the optional quantity selector for your 2nd upsell item (set 'Per Booking') to 0-4:

#optextra2 option:nth-child(n+6){display:none;}


Example 2: Set the range of the optional quantity selector for your 5th upsell item (set 'Per Room/Person/Adult/Child') to 0-20:

#optextraroom5 option:nth-child(n+22){display:none;}

1.1.25 Hide Check-in / Check-out selector

.b24-selector-checkin{display:none;}

.b24-selector-checkout{display:none;}

1.1.26 Hide number of nights selector

.b24-selector-numnight{display:none;}

1.1.27 Change height of full-width slider

.fullwidthjumbopropslider .b24fullcontainer-proprow1 .b24-prop-slider .item {height: 500px;}

.fullwidthjumbopropslider .b24fullcontainer-proprow1 .b24-prop-slider .carousel.slide{ height: 500px !important;}

1.1.28 Hide the offer description on the check-out page

.at_offersummary {display: none;}

1.1.29 Show number of nights on mobiles

.b24-selector-numnight { display: inline-block !important; }

1.1.30 Hide room picture on check-out page

.b24-guest-details-right img {display: none;}

1.1.31 Hide option to collect credit cards from Booking page if you want to use this option only for requests via Email

.bp2bookcollectpayment .panel-pay-card{display:none;}

1.1.32 Hide "Print Booking" on the confirmation screen

.conf_p{display:none;}

1.1.33 Hide "Click here to make another booking" on the confirmation screen

.bookagainlink{display:none;}

1.1.34 Adjust alignment for RTL languages (Arabic, Hebrew)

.rtlinject{ float: right; } .colorbody-he, .colorbody-he #bookingpage, .colorbody-ar, .colorbody-ar #bookingpage { text-align: right; } .colorbody-he .ssi_makeabooking, .colorbody-he .panel .fakelink, .colorbody-ar .ssi_makeabooking, .colorbody-ar .panel .fakelink{ text-align: left; } .colorbody-he .datepicker, .colorbody-he .roomoffercalendarmonth td, .colorbody-he .ssi_makeabooking .colorbody-he .b24-guest-details-left, .colorbody-he .b24-guest-details-left.propconfirmbookmessage, .colorbody-he .b24-creditcard, .colorbody-he .b24-guest-details-left, .colorbody-ar .datepicker, .colorbody-ar .roomoffercalendarmonth td, .colorbody-ar .ssi_makeabooking .colorbody-ar .b24-guest-details-left, .colorbody-ar .b24-creditcard, .colorbody-ar .b24-guest-details-left.propconfirmbookmessage, .colorbody-ar .b24-guest-details-left { float: right; } .colorbody-he .book_bookingbackright, .colorbody-he .b24-guest-details-right, .colorbody-he .questionrow div:first-child, .colorbody-he .book_securelogo, .colorbody-he .ppcancelbutton, .colorbody-ar .book_bookingbackright, .colorbody-ar .b24-guest-details-right, .colorbody-ar .questionrow div:first-child, .colorbody-ar .book_securelogo, .colorbody-ar .ppcancelbutton{ float: left; } .colorbody-he .at_offersummary ul, .colorbody-ar .at_offersummary ul{ padding-right: 0; } .colorbody-he .booktextdiv, .colorbody-ar .booktextdiv{ width: 100%; } .colorbody-he .b24-offer-cal , .colorbody-he .b24-offer-summary, .colorbody-he .b24-offer-slider { float: right; }

1.1.35 Change colors of warnings

.alert-danger { color: #7e7602; background-color: #fcf8bd; border-color: #fcf8bd; }

1.2 MULTI PROPERTY BOOKING PAGE

Custom CSS can be added in (SETTINGS) > BOOKING PAGE > MULTI BOOKING PAGE > DEVELOPERS > "Custom CSS"

1.2.1 Make search criteria always visible

#collapseAdvancedSearch{height: auto; display:block !important;}

.b24-agencysearchlink{display:none;}

1.2.2 Change height of full-width slider

.fullwidthjumboagencyslider .b24fullcontainer-ownerrow1 .b24-owner-slider .item {height: 600px;}

.fullwidthjumboagencyslider .b24fullcontainer-ownerrow1 .b24-owner-slider .carousel.slide{height: 500px !important;}

1.2.3 Limit the drop-down list for number of guests

By default this list goes up to 99. You can limit it with the following code. Substitute X for the desired number + 2. So, if you want the drop-down list to be limited to 10 then X=12.

#inputnumadult option:nth-child(n+6){display:none;}

#inputnumchild option:nth-child(n+6){display:none;}

1.2.4 Adjust alignment for RTL languages (Arabic, Hebrew)

.rtlinject{ float: right;} .colorbody-he, .colorbody-ar { text-align: right;} .colorbody-he .b24-prop-module, .colorbody-he .datepicker, . colorbody-he .roomoffercalendarmonth td, .colorbody-ar .datepicker, . colorbody-ar .roomoffercalendarmonth td{ float: right;} .colorbody-he .at_propnametext, .colorbody-ar .at_propnametext { padding-right: 10px; }

1.2.5 Hide Property Name

This will remove the individual property names from the Multi Property booking page.

.at_propnametext {display: none;}

1.3 BOOKING WIDGETS

CSS needs to be added directly in your web site

1.3.1 Change the hover-color in the datepicker calendar

.book-widget .ui-datepicker td .ui-state-active, .book-widget .ui-datepicker td .ui-state-hover, .book-widget.ui-datepicker td .ui-state-active, .book-widget.ui-datepicker td .ui-state-hover {background-color:#ffffff!important; color:#000000!important}

1.3.2 Make only Saturdays clickable in the datepicker calendar

.book-widget .ui-datepicker tr > :nth-child(1), .book-widget .ui-datepicker tr > :nth-child(2), .book-widget .ui-datepicker tr > :nth-child(3), .book-widget .ui-datepicker tr > :nth-child(4), .book-widget .ui-datepicker tr > :nth-child(5), .book-widget. ui-datepicker tr > :nth-child(7){pointer-events: none;}

2 INVOICES and PRINT TEMPLATES

Custom CSS can be added in (SETTINGS) > GUEST MANAGEMENT > STYLING > "Custom CSS"

2.1 Center invoice on the screen and set overall font size

body {text-align: center; font-size: 16px;}

2.2 Set font size of property name

#invoicepropname{font-size: 24px;}

2.3 Set font size of address

#invoiceaddress{font-size: 18px; padding-bottom: 50px;}

2.4 Set font size of the invoice table

.confirmationtable{font-size: 16px;}

2.5 Change margin

.printbooking2 {margin: 20px;}

2.6 TBC

#invoicetable{margin-left:auto; margin-right:auto;}

2.7 TBC

#invoiceprinttime{font-size: 12px;}

2.8 Hide edit button in the invoice

#iconedit {display: none;}

2.9 Align all table content right

.conf_subheadercenter, .conf_numbercenter{text-align: right !important;}

3 CONTROL PANEL

Custom CSS can be added in:

  • Click on the 'User' icon on the top right and then on 'Account Management (in the old control panel SUB ACCOUNT in the top right) then on ACCOUNT LIST to apply for all sub accounts
  • Click on the 'User' icon on the top right and then on 'Account Management (in the old control panel SUB ACCOUNT in the top right) then on ACCOUNT LIST > MANAGE ACCOUNT to apply for a specific sub account

3.1 Navigation

3.1.1 Hide SUPPORT button

.navbar-top .btngroupdropdown{display: none}

3.1.2 Hide page help icon on the right

.opener-right{display: none}

3.1.3 Change header background color

.fixed-top {background-color: #cccccc;}

3.1.4 Hide "Settings" icon in left column

.#c3sidebarCollapse{display: none !important;} {display: none;}

3.1.5 Hide "Price Checker Tool" button

.b24btn_PriceCheck {display: none}

3.1.6 Hide "Try the new calendar" link

.tryTheNewCalendar {display: none;}

3.2 Dynamic Multi-Calendar

3.2.1 Hide "Intelligence" icon

.sticky-left .row-intelligence-button{display: none;}

3.2.2 Hide "Help" icon in left column

.sticky-left .row-help-button {display: none;}

3.2.3 Hide Drag&Drop option

#dragDropButton {display: none;}

3.2.4 Hide "Notes" icon in left column

.sticky-left .fa-comment-alt-plus, .sticky-left .fa-comment-alt-lines {display: none;}

3.2.5 Hide "Intelligence" icon

.sticky-left .row-intelligence-button{display: none;}

3.2.6 Hide Group booking icons

.fa-circle{display: none;}

3.2.7 Display occupancy as color instead of number

.calendar2 .property-stats-wrapper {margin-top: 5px;} .calendar2 .property-stats-wrapper.empty { display: inline-block; background-color: #7AAB0A; height: 10px; width: 10px; border-radius: 50%; color: transparent; } .calendar2 .property-stats-wrapper.medium { display: inline-block; background-color: #fe746c; height: 10px; width: 10px; border-radius: 50%; color: transparent; }

3.2.8 Change the backgound color of weekends (Saturday/Sunday)

.th-sat, .th-sun {background-color:#ffceaf !important;}

3.2.9 Change the backgound color of past dates

.pastdate{background-color:#d7d7d7;}

3.2.10 Hide Intelligence button

.sticky-left .row-intelligence-button{display: none;}

3.2.11 Hide contect help

.sticky-left .row-help-button {display: none;}

3.2.12 Change color of unavailable dates

.inv0 { color: blue }

3.2.13 Change color and background color of daily prices

.price { background-color:#7cc576; color:white;}

3.2.14 Make inventory row read-only

.calendar2 .row-room { pointer-events: none; }

3.2.15 Make Daily Price row read-only

.row-price{ pointer-events: none; }

3.2.16 Change background and font color for "Unallocated" bookings

..pagetypecalendar2 .overflow-unit{ background-color: #FEE0DD; color: #9E4843;}

3.2.17 Hide the option to create or change views

#view-templates-button{ display: none; }

3.2.18 Disable the option to create or change views

#view-templates-button, #saveViewButton{ pointer-events: none; }

3.3 Old Calendar

3.3.1 Hide "Show" in the CALENDAR

.dashgridshowfilter {display:none;}

3.3.2 Hide "Override row" in the CALENDAR

.dashgrid_rowtype1{display:none;}

3.3.3 Hide item from dropdown for rooms in the CALENDAR

.dashgrid_rowroomname .dropdown ul.dropdown-menu li:nth-child(3) {display:none !important;}

3.3.4 Hide suitcase icon (add booking) from CALENDAR

.icon-suitcase, .fa-suitcase {display:none}

3.3.5 Hide button 'Add Booking' from CALENDAR

.b24btn_AddBooking{display:none}

3.3.6 Display red when inventory is 0

.inv0 .dashgrid_inventory{color:red;}

3.3.7 Show weekends (Saturday/Sunday) in a different color

.weekend2{background-color:red;}

3.3.8 Show a certain day of the week in red

Substitute X with the number of the weekday: Monday=1, Tuesday=2, Wednesday=3, Thursday=4, Friday=5, Saturday=6, Sunday=7 .caldayX{background-color:red;}

3.3.9 Show today in red

.todaydate{background-color:red;}

3.3.10 Show past dates in a different color

.pastdate{background-color:grey;}

3.3.11 Display room name and icons in one line

.dashgrid_rowroomname{display:inline;}

.editroomlink{padding-left: 2px;}

3.3.12 Warning color dates not selling

.dashgrid_inventory_nap{background-color: red; color: white;}

3.4 Dashboard

3.4.1 Hide the Dashboard selector (drop-down menu) from DASHBOARD

.dashcontrol #dashid{display: none !important}

3.4.2 Hide the "Padlock" menu from DASHBOARD

.dashcontrol .dropdown{display: none !important}

3.4.3 Hide a certain column in the Departures Table on the DASHBOARD

.mobiledeparture tr > *:nth-child(X) {display: none;}

3.4.4 Hide the "Add Booking" from mobile DASHBOARD

.mobiledashaddbooking{display:none;}

3.4.5 Hide room on Housekeeping Units and Housekeeping Bookings modules=

.widgettype-units .roomrowclassXXX {display: none;} /* replace XXX with the room ID*/

3.4.6 Hide column on the dashboard tables

Change the child number in brackets to the desired column.

.dashboardtable th:nth-child(9) {display:none;}

3.4.7 Hide Edit button in the Notes component

Change the child number in brackets to the desired column.

#dashboardnotea .btn {display:none;}

3.5 Align the content of a column right

.bookingtable td:nth-child(8) {text-align: right;}

3.6 Guests Menu

3.6.1 Hide a certain row in the "Info" tab on GUESTS

.pagetypeguests .viewguest .table tr:nth-child(x) {display: none; }

3.7 Bookings Menu

3.7.1 Hide property name in the BOOKING GRID

.bookgrid_rowpropname{display: none;}

3.7.2 Hide room name in the BOOKING GRID

.bookgrid_rowroomname{display: none;}

3.7.3 Hide room name in the BOOKING GRID

. pagetypebookingsgrid .todaydate{font-weight:bold;}

3.7.4 Hide a certain column in the BOOKING LIST Table

.pagetypebookingslist .bookingtable tr > *:nth-child(X) {display: none;}

Examples:

.pagetypebookingslist .bookingtable tr > *:nth-child(2) {display: none;} will hide the first column which is 'Number'.

.pagetypebookingslist .bookingtable tr > *:nth-child(11) {display: none;} will hide the tenth column which is 'Email'.

3.7.5 Hide column on the BOOKINGS table

Change the child number in brackets to the desired column.

.bookingtable th:nth-child(12) {display:none;}

3.7.6 Hide cancelled bookings BOOKINGS list

.pagetypebookingslist .cancelbooking{display:none;}

3.7.7 Hide cancelled bookings in the BOOKINGS Table

.bookingtable .cancelbooking {display:none;}

3.7.8 Hide "Export" button

.b24btn_ExportBookings {display:none;}

3.7.9 Disable moving of bookings

.pagetypebookingsgrid table {pointer-events: none;}

3.8 Fixed Prices Menu

3.8.1 Hide column on the Fixed Prices table

Change the child number in brackets to the desired column.

.ratetable th:nth-child(9) {display:none;}

3.9 Reports Menu

3.9.1 Limit selector list for custom reports

Example: Limit the list to reports 1 - 3:

#reportid option:nth-child(n+4){display:none;}

3.9.2 Hide a certain field from 'Available Columns'

Example: Hide the 'Email' field

.pagetypereports2 #guestemail {display: none;}


3.10 Settings Menu

3.10.1 Hide the "Delete" button for properties

.pagetypeproperties .b24btn_delete{display:none;}

3.10.2 Hide the "Delete" button for rooms

.pagetyperooms .b24btn_delete{display:none;}

3.11 Booking Popup

3.11.1 Hide 'Open in new Window' link

.pagetypeajaxbookedit.openinnewwindow{display:none;}

3.11.2 Charges & Payments

3.11.2.1 Hide the VAT column

.pagetypeajaxbookedit .invoicetablevat {display: none;}

Please note: This will not hide the title column (Vat %). See for yourself if you can live with it.

3.11.2.2 Prevent invoice items being deleted

.tr_invoicee .btn-danger, #groupinvoicebulkaction option[value="1"] {display:none !important;}

3.11.2.3 Prevent manual entry of charge items

.chargenewitemtr input {pointer-events: none;}

3.11.2.4 Prevent manual entry of payment items

.paymentnewitemtr input {pointer-events: none;}

3.11.3 Functions and Buttons

3.11.3.1 Hide the checkout selector

.pagetypeajaxbookedit #checkout{display:none;}

3.11.3.2 Hide the 'Delete' button

.pagetypeajaxbookedit .deletebookingbutton{display:none;}

3.11.3.3 Hide the 'Add Booking' button

.icon-suitcase, .b24btn_AddBooking{display:none;}

3.11.3.4 Hide the 'Copy as new' button

.pagetypeajaxbookedit #bookingcopyasnewbutton{display:none;}

3.11.3.5 Hide the 'Print' button

.pagetypeajaxbookedit #bookingprintbutton{display:none;}

3.11.3.6 Hide the 'Assign Invoice Number' button

.pagetypeajaxbookedit .b24btn_AssignInvoiceNumber{display:none;}

German control panel:

.pagetypeajaxbookedit .b24btn_Rechnungsnummererzeugen{display:none;}

3.11.3.7 Hide the 'Template' buttons

.pagetypeajaxbookedit #bookingtemplate1button{display:none;}

.pagetypeajaxbookedit #bookingtemplate2button{display:none;}

.pagetypeajaxbookedit #bookingtemplate3button{display:none;}

3.11.3.8 Hide the 'Continue anyway' buttons

.statusmsg .btn{display: none}

3.11.3.9 Prevent changes of the "Status" field"

.menusetting-status{pointer-events: none;}

3.11.4 Hide Specific Fields

3.11.4.1 TAB Summary

Guest title

.pagetypeajaxbookedit .menusetting-guesttitle{display:none;}

Last Name

.pagetypeajaxbookedit .menusetting-guestname{display:none;}

Guest comments

.pagetypeajaxbookedit .menusetting-guestcomments{display:none;}

Notes

.pagetypeajaxbookedit .menusetting-hostcomments{display:none;}

Adults

.pagetypeajaxbookedit .menusetting-numadults{display:none;}

Children

.pagetypeajaxbookedit .menusetting-numchild{display:none;}

Telephone

.pagetypeajaxbookedit .menusetting-guestphone{display:none;}

Mobile

.pagetypeajaxbookedit .menusetting-guestmobile{display:none;}

Fax

.pagetypeajaxbookedit .menusetting-guestfax{display:none;}

Address

.pagetypeajaxbookedit .menusetting-guestaddress{display:none;}

City

.pagetypeajaxbookedit .menusetting-guestcity{display:none;}

Postcode

.pagetypeajaxbookedit .menusetting-guestpostcode{display:none;}

Country (manual entry)

.pagetypeajaxbookedit .menusetting-guestcountry{display:none;}

Country (drop-down list)

.pagetypeajaxbookedit .menusetting-guestcountry2{display:none;}

Status

.pagetypeajaxbookedit .menusetting-status{display:none;}

Room Selector .pagetypeajaxbookedit .menusetting-roomid{display:none;}


3.11.4.2 TAB Detail

Message

.pagetypeajaxbookedit .menusetting-hostmessage{display:none;}

Custom Questions (X = number of custom question)

.pagetypeajaxbookedit .menusetting-guestcustqX{display:none;}

Reference

.pagetypeajaxbookedit .menusetting-ownerreference{display:none;}

Quantity

.pagetypeajaxbookedit .menusetting-qty{display:none;}

Cancellable

.pagetypeajaxbookedit .menusetting-stopcancel{display:none;}

Flag

.pagetypeajaxbookedit .menusetting-flagtext{display:none;}

Status Code

.pagetypeajaxbookedit .menusetting-statuscode{display:none;}

Created in Account

.pagetypeajaxbookedit .menusetting-Createdinaccount{display:none;}

Original Referrer

.pagetypeajaxbookedit .menusetting-OriginalReferrer{display:none;}

Time Entered

.pagetypeajaxbookedit .menusetting-TimeEntered{display:none;}

IP Address

.pagetypeajaxbookedit .menusetting-IPAddress{display:none;}

API Message

.pagetypeajaxbookedit .menusetting-apimessage{display:none;}

Guest Database

.pagetypeajaxbookedit .menusetting-isguest{display:none;}

3.11.4.3 TAB Mail & Actions

Email

.pagetypeajaxbookedit .menusetting-guestemail{display:none;}

3.12 Add Booking

3.12.1 Prevent price to be changed

..pagetypeajaxbookedit .menusetting-unitprice, .pagetypeajaxbookedit .menusetting-price { pointer-events: none;}

3.13 Reports

Custom CSS can be added in (SETTINGS) > GUEST MANAGEMENT > STYLING > "Custom CSS"

3.13.1 Hide a the "Booking Notes" column in the Daily Unit Activity report

.reportdailyunitactivity th > *:nth-child(9) {display: none;}

.reportdailyunitactivity td > *:nth-child(9) {display: none;}

3.14 Miscellaneous

3.14.1 Change the blue Login button on the initial Beds24 page (resellers only)

.pagetypelogin .b24btn_Login{background-color:#xxxxxx;}

3.14.2 Hide the "Stripe" button

#makechargeusing{display:none;}

3.14.3 Hide the Stripe "Refund" button

#b24btn_Refund{display:none;}

If your are using the control panel in another language than English you might need to replace the word Refund with what you see on the button.

3.14.4 Hide potential issue "Less than 12 months available"

.warninglessthan12monthsavailable{ display: none}

3.14.5 Hide potential issue "Too many guests in booking xxxxx"

..warningunitnotassigned{ display: none}

3.14.6 Hide 'Template 2' from Guest Management > Booking Templates

.pagetypecommunicationbooktemplate #settingformid .background_boxprop:nth-of-type(2){display:none;}

3.14.7 Hide the option to unlock invoices

.menusetting-invoicelock {display:none;}