Skip to content

How to add booking widgets to your website

Paste a button, date search, fleet list or calendar on your website, and customers book a vehicle without leaving it.

Updated

All sections
In this article

A widget is code you paste on your website. Customers pick dates or a vehicle there, and the booking opens in a window over your page. Widgets work on every plan, and anyone with the permission Change company settings, the website and widgets sets them up.

Before you start

Widgets take bookings when online reservations are on, also on the Starter plan. A new company starts with them off. When you add your first website address, we turn them on for you. You can also click Turn on online reservations at the top of the widgets page, or switch them on in Settings › Public booking. Its scheduling rules and cancellation policy apply in the widgets too.

Four widgets

WidgetWhat it does
ButtonOpens the booking window on the whole fleet or one vehicle.
Date searchA bar with branch and dates. Search opens a window with the free vehicles.
Fleet listVehicle cards with photo and price. A card opens the window on its vehicle.
CalendarFree and booked days of one vehicle. Chosen days open the window with those dates.

Add your website address

  1. Open Settings › Widgets for your website.
  2. Under Your website addresses, type the address in Website address, for example your-company.co.uk.
  3. Click Add.

Widgets open only at listed addresses, with or without www. Add another part of the address, such as offers.your-company.co.uk, separately. You can add up to 10 addresses.

Set up the widget and copy the code

  1. Under Widget, choose Button, Date search, Fleet list or Calendar.
  2. Set the fields shown, such as Branch, Button text or Cards to show.
  3. If the widget opens one vehicle, choose a Booking window:
    • Straight to booking: a narrow window with dates and price, then the form,
    • Full booking page: a wide window with the vehicle's photos and description.
  4. Check the widget under Preview.
  5. Under This widget's code, click Copy code.
  6. Under Code to paste, at Script (once per page), click Copy code.

Paste the script once per page; the page can have any number of widgets. Without the script the button still opens the booking, as an ordinary page.

Paste the code on your website

  • WordPress: add a “Custom HTML” block and paste the script and widget code into it.
  • Elementor: drag in an “HTML” element and paste the script and widget code into it.
  • Wix, button: add a normal Wix button linking to the address after href= in the button code. Paste the script into the Wix site settings as custom code, on all pages. This needs a paid Wix plan with a connected domain.
  • Wix, other widgets: paste the code with the script into an “Embed” element. Then, under Widget settings, switch on My site is on Wix. The booking opens in a new tab there.
  • Your own website: paste the script once, ideally near the end of the page, and the widget code where the widget goes.

Someone else builds your site? Under Hand the code over, click Send the code to whoever builds your site. Your email program opens a ready message with the listed addresses, the script and the button, date search and fleet list code.

Check it works

  1. Open your page with the widget.
  2. Go back to Settings › Widgets for your website.

Under the address you see, for example, “Running, code seen today at 10:42”. It updates at most once a minute. If it says “We haven't seen the code here yet”, see The widget doesn't show on my website.

A widget reservation goes to Reservations like any online reservation. Its Activity tab shows Through the widget on your website.

What next

How to add booking widgets to your website | OneRental