Custom CSS

From Beds24 Wiki
(Redirected from CSS)
Jump to navigation Jump to search
Custom CSS
This page gives custom CSS examples which can be used to customize the booking page or the control panel.

Contents

PROPERTY BOOKING PAGE

{{#fas:lightbulb}} Custom CSS can be added in {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE DEVELOPERS > "Custom CSS"

Bigger room name

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

Disable clicks on calendar selector

Disable month back-and-forth toggle

.monthcalendarhead{pointer-events: none;}

Disable clicks on dates

.roomoffercalendarmonth{pointer-events: none;}

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;}

Background Image

To use a background image upload it to {{#fas:cog}} (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);}

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;}

Booking Page with rounded corners (Adaptive Booking Page only)

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

Hide cents

.bookingpagecents {display:none;}

Show prices with cents even if cents are zero

.bookingpagecentshide {display:inline;}

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;}

Add a border around the selected dates

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


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

Line through unavailable dates

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

Mark past dates with a different background and text colour

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

Change width of hover image (Adaptive Booking Page only)

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

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

img{pointer-events: none;}

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

.roomofferqtyselectlabel{display: block;}

Hide up button (Responsive Booking Page only)

footer .button{display: none;}

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.

{{#fas:exclamation-triangle}} 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 {{#fas:cog}} (SETTINGS) BOOKING ENGINE > PROPERTY BOOKING PAGE > DEVELOPER / {{#fas:cog}} (SETTINGS) BOOKING ENGINE > MULTIBOOKING PAGE > DEVELOPER.

Hide icons (Responsive Booking Page only)

.b24fa{display:none;}

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

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;}

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;}

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;}

Remove 0 from adults or guests selector

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

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;}

Hide Check-in / Check-out selector

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

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

Hide number of nights selector

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

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;}

Hide the offer description on the check-out page

.at_offersummary {display: none;}

Show number of nights on mobiles

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

Hide room picture on check-out page

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

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;}


MULTI PROPERTY BOOKING PAGE

{{#fas:lightbulb}} Custom CSS can be added in {{#fas:cog}} (SETTINGS) > BOOKING PAGE > MULTI BOOKING PAGE > DEVELOPERS > "Custom CSS"

Make search criteria always visible

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

.b24-agencysearchlink{display:none;}

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;}

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+X){display:none;}

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

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

Set font size of property name

#invoicepropname{font-size: 24px;}

Set font size of address

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

Set font size of the invoice table

.confirmationtable{font-size: 16px;}

Change margin

.printbooking2 {margin: 20px;}

TBC

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

TBC

#invoiceprinttime{font-size: 12px;}

Hide edit button in the invoice

#iconedit {display: none;}


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

Calendar

Hide "Show" in the CALENDAR

.dashgridshowfilter {display:none;}

Hide "Override row" in the CALENDAR

.dashgrid_rowtype1{display:none;}

Hide item from dropdown for rooms in the CALENDAR

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

Hide suitcase icon (add booking) from CALENDAR

.icon-suitcase {display:none}

Hide button 'Add Booking' from CALENDAR

.b24btn_AddBooking{display:none}

Display red when inventory is 0

.inv0 .dashgrid_inventory{color:red;}

Show weekends (Saturday/Sunday) in a different color

.weekend2{background-color:red;}

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;}

Show today in red

.todaydate{background-color:red;}

Show past dates in a different color

.pastdate{background-color:grey;}

Display room name and icons in one line

.dashgrid_rowroomname{display:inline;}

.editroomlink{padding-left: 2px;}

Warning color dates not selling

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

Dashboard

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

.dashcontrol #dashid{display: none !important}

Hide the "Hamburger" menu from DASHBOARD

.dashcontrol .dropdown{display: none !important}

Hide a certain column in the Departures Table on the DASHBOARD

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

Hide the "Add Booking" from mobile DASHBOARD

.mobiledashaddbooking{display:none;}

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.

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

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

Align the content of a column right

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

Guests Menu

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

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


Bookings Menu

Hide property name in the BOOKING GRID

.bookgrid_rowpropname{display: none;}

Hide room name in the BOOKING GRID

.bookgrid_rowroomname{display: none;}

Hide a certain column in the BOOKING LIST Table

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

Examples:

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

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

Hide column on the BOOKINGS table

Change the child number in brackets to the desired column.

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

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

Hide cancelled bookings in the BOOKINGS Table

.bookingtable .cancelbooking {display:none;}

Hide "Export" button

.b24btn_ExportBookings {display:none;}

Rates Menu

Hide column on the rates table

Change the child number in brackets to the desired column.

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

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


Reports Menu

Limit selector list for custom reports

Example: Limit the list to reports 1 - 3:

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

Hide a certain field from 'Available Columns'

Example: Hide the 'Email' field

.pagetypereports2 #guestemail {display: none;}


Settings Menu

Hide the "Delete" button for properties

.pagetypeproperties .b24btn_delete{display:none;}


Booking Popup

Hide 'Open in new Window' link

.pagetypeajaxbookedit.openinnewwindow{display:none;}

Charges & Payments

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.

Functions and Buttons

Hide the checkout selector

.pagetypeajaxbookedit #checkout{display:none;}

Hide the 'Delete' button

.pagetypeajaxbookedit .deletebookingbutton{display:none;}

Hide the 'Add Booking' button

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

Hide the 'Copy as new' button

.pagetypeajaxbookedit #bookingcopyasnewbutton{display:none;}

Hide the 'Print' button

.pagetypeajaxbookedit #bookingprintbutton{display:none;}

Hide the 'Assign Invoice Number' button

.pagetypeajaxbookedit .b24btn_AssignInvoiveNumber{display:none;}

German control panel:

.pagetypeajaxbookedit .b24btn_Rechnungsnummererzeugen{display:none;}

Hide the 'Template' buttons

.pagetypeajaxbookedit #bookingtemplate1button{display:none;}

.pagetypeajaxbookedit #bookingtemplate2button{display:none;}

.pagetypeajaxbookedit #bookingtemplate3button{display:none;}

Hide the 'Continue anyway' buttons

.statusmsg .btn{display: none}

Hide Specific Fields

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;}


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;}

TAB Mail & Actions

Email

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

Reports

{{#fas:lightbulb}} 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

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

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

Miscellaneous

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

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

Hide the "Make a Charge using Stripe" button

#makechargeusing{display:none;}

Hide potential issue "Less than 12 months available"

.warninglessthan12monthsavailable{ display: none}

Hide 'Template 2' from Guest Management > Booking Templates

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

NEW CONTROL PANEL

Navigation

Hide SUPPORT button

.navbar-top .btngroupdropdown{display: none}

Hide page help icon on the right

.opener-right{display: none}