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
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
| Widget | What it does |
|---|---|
| Button | Opens the booking window on the whole fleet or one vehicle. |
| Date search | A bar with branch and dates. Search opens a window with the free vehicles. |
| Fleet list | Vehicle cards with photo and price. A card opens the window on its vehicle. |
| Calendar | Free and booked days of one vehicle. Chosen days open the window with those dates. |
Add your website address
- Open Settings › Widgets for your website.
- Under Your website addresses, type the address in Website address, for example
your-company.co.uk. - 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
- Under Widget, choose Button, Date search, Fleet list or Calendar.
- Set the fields shown, such as Branch, Button text or Cards to show.
- 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.
- Check the widget under Preview.
- Under This widget's code, click Copy code.
- 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
- Open your page with the widget.
- 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
Did this help?
See also
- How to change how the booking widgets lookMatch the widgets and booking window to your website with your own stylesheet, and switch off the “Bookings by OneRental” line from the Pro plan.
- 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.
- How to publish your booking pageSwitch on online reservations, set the scheduling and cancellation rules, then go through your page the way a customer will.