Skip to content

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
In this article

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.

  1. Open Settings › Widgets for your website.
  2. 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.

  1. Open Settings › Widgets for your website.
  2. In the Custom CSS section, paste the rules in the Stylesheet field.
  3. 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:

NameElement
buttonbuttons
searchthe date search bar
search-buttonthe Search button
fleetthe fleet list
fleet-filterthe type buttons above the fleet list
carda vehicle card
card-titlethe vehicle name on a card
card-pricethe price on a card
calendarthe calendar
calendar-daya 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