How to change how the booking widgets look
Match the widgets and booking window to your website with your own stylesheet, and switch off the “Bookings by OneRental” line from the Pro plan.
Updated
All sections
The widgets and booking window on your website have OneRental's light, neutral look. They don't take colours or fonts from the site builder, because your website has a look of its own. Anyone with the permission Change company settings, the website and widgets can change it.
The booking page opened at its own address still looks the way you set it in Settings › Site builder.
Ground under the widget
The date search, fleet list and calendar have the Ground under the widget option in the Widget section:
- Transparent: when the widget stands on your photo or colour,
- Light: the widget gets its own light background.
The option goes into the widget code, so after a change copy the code again and paste it on your website.
Switch off the “Bookings by OneRental” line
Under the booking window there is a small line, “Bookings by OneRental”. You can switch it off from the Pro plan and during the trial.
- Open Settings › Widgets for your website.
- In the Widget settings section, switch off the toggle The line "Bookings by OneRental".
The change is saved straight away and works on your website with no new code. On a lower plan you can't change the toggle, and when you move to a lower plan, the line comes back.
Custom CSS
Your own stylesheet changes how the widgets and booking window look, on every plan. Usually the person or agency that runs your website writes it.
- Open Settings › Widgets for your website.
- In the Custom CSS section, paste the rules in the Stylesheet field.
- Click Save CSS.
The stylesheet works only in the widgets and the booking window on your website. The Preview in the Widget section shows the widget with the new look.
You point at elements with the data-or-part attribute, for example [data-or-part="card"] for a vehicle card. These names won't change without notice:
| Name | Element |
|---|---|
button | buttons |
search | the date search bar |
search-button | the Search button |
fleet | the fleet list |
fleet-filter | the type buttons above the fleet list |
card | a vehicle card |
card-title | the vehicle name on a card |
card-price | the price on a card |
calendar | the calendar |
calendar-day | a day in the calendar |
The stylesheet can be up to 20,000 characters long. It can't contain @import, HTML tags or scripts, and url() can point only at Google Fonts. You can't save such a stylesheet, and a message under the field tells you what to fix.
What next
Did this help?
See also
- How to add booking widgets to your websitePaste a button, date search, fleet list or calendar on your website, and customers book a vehicle without leaving it.
- The widget doesn't show on my websiteWhat to check when the booking widget doesn't appear on your website, the booking window is empty or you can't book in it.