Difference between revisions of "Custom CSS"

From Beds24 Wiki
Jump to navigation Jump to search
Line 132: Line 132:
 
=== Hide currencies from the currency selector (responsive Booking Page only) ===
 
=== 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 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:
 
The country codes are:
  AUD, CAD, EUR, GBP, NZD, USD, BGN, BRL, CHF, CNY, CZK, DKK, HKD, HRK, HUF, HUF, IDR, INR, JPY, KRW, MXN, MYR, NOK, PHP, PLN, RON, RUB, SEK, SGD, THB, TRY, ZAR
+
AUD, CAD, EUR, GBP, NZD, USD, BGN, BRL, CHF, CNY, CZK, DKK, HKD, HRK, HUF, HUF, IDR, INR, JPY, KRW, MXN, MYR, NOK, PHP, PLN, RON, RUB, SEK, SGD, THB, TRY, ZAR
  
 +
This code will remove all currencies except for:
 
  .cur-AUD, .cur-CAD, .cur-EUR, .cur-GBP, .cur-NZD,.cur-USD, .cur-BGN, .cur-BRL, .cur-CHF, .cur-CNY,.cur-CZK, .cur-DKK,.cur-HKD, .cur-HRK, .cur-HUF,.cur=HUF, .cur-IDR,.cur-INR, .cur-JPY, .cur-KRW, .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;}
 
  .cur-AUD, .cur-CAD, .cur-EUR, .cur-GBP, .cur-NZD,.cur-USD, .cur-BGN, .cur-BRL, .cur-CHF, .cur-CNY,.cur-CZK, .cur-DKK,.cur-HKD, .cur-HRK, .cur-HUF,.cur=HUF, .cur-IDR,.cur-INR, .cur-JPY, .cur-KRW, .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;}
  

Revision as of 08:52, 25 August 2018


This page gives Custom CSS examples

Contents

1 Booking Page

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

1.1 Bigger room name

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

1.2 Disable clicks on calendar selector

1.2.1 Disable month back-and-forth toggle

.monthcalendarhead{pointer-events: none;}

1.2.2 Disable clicks on dates

.roomoffercalendarmonth{pointer-events: none;}

1.3 Mark dates when check-out is not allowed (i.e. for rentals on a weekly basis)

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.

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

1.4 Background Image

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.

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

1.5 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.6 Booking Page with rounded corners (Adaptive Booking Page only)

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

1.7 Hide cents

.bookingpagecents {display:none;}

1.8 Show prices with cents even if cents are zero

.bookingpagecentshide {display:inline;}

1.9 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.10 Add a border around the selected dates

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

1.11 Line through unavailable dates

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

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

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

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

img{pointer-events: none;}

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

.roomofferqtyselectlabel{display: block;}

1.15 Hide up button (Responsive Booking Page only)

footer .button{display: none;}

1.16 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.

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

1.17 Hide icons (Responsive Booking Page only)

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

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

#topofthebookingpage{color: #ffffff;}

1.19 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.20 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, CAD, EUR, GBP, NZD, USD, BGN, BRL, CHF, CNY, CZK, DKK, HKD, HRK, HUF, HUF, IDR, INR, JPY, KRW, MXN, MYR, NOK, PHP, PLN, RON, RUB, SEK, SGD, THB, TRY, ZAR

This code will remove all currencies except for:

.cur-AUD, .cur-CAD, .cur-EUR, .cur-GBP, .cur-NZD,.cur-USD, .cur-BGN, .cur-BRL, .cur-CHF, .cur-CNY,.cur-CZK, .cur-DKK,.cur-HKD, .cur-HRK, .cur-HUF,.cur=HUF, .cur-IDR,.cur-INR, .cur-JPY, .cur-KRW, .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;}

will remove all currencies. Remove the currencies you want to show from the code.

2 Multiple Booking Page

Custom CSS can be added in SETTINGS > BOOKING PAGE > MULTIPLE PROPERTIES > DEVELOPERS > "Custom CSS"

2.1 Make search criteria always visible

#collapseAdvancedSearch{height: auto; display:block !important;}
.b24-agencysearchlink{display:none;}


3 Invoices

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

3.1 Center invoice on the screen and set overall font size

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

3.2 Set font size of property name

#invoicepropname{font-size: 24px;}

3.3 Set font size of address

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

3.4 TBC

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

3.5 TBC

#invoiceprinttime{font-size: 12px;}


4 Control Panel

Custom CSS can be added in:
*SUB ACCOUNTS > ACCOUNT LIST *SUB ACCOUNTS > ACCOUNT LIST > MANAGE ACCOUNT

4.1 Change the blue Login button on the initial Beds24 page

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