How do I add booking, gift card and other widgets to my own website?
Paste one script tag per widget to add bookings, gift cards, events, your menu, loyalty sign-up, the waitlist, an Order online button or your whole venue page to your own website — customise everything from the dashboard without re-pasting, and lock your widgets to your own website.
You add ResoFlow widgets to your own website by pasting a single line of code per widget. There are nine widgets — Bookings, Gift cards, What's on (a full page or a slim strip of upcoming events), Menu (view-only), Loyalty join, Waitlist, Order online (a button that opens your ordering page for collection or delivery), and the Everything widget (one button opening your whole venue page, with tabs for whatever you have live). Each widget only appears on your site while the matching feature is live for your venue — a widget for something you don't have simply shows nothing, never an upgrade message to your visitors. In Website widgets you see only the widgets that come with what your venue has — a venue that only sells gift cards, for example, sees its gift card, What's on and Everything widgets, and no Bookings or Waitlist widget. On the Plus plan you get the Bookings, What's on and Everything widgets; the Gift cards widget comes with Pro, Complete, or the Gift cards product.
Only Owners and Admins see this page.
- Go to Settings → Public booking → Website widgets.
- Pick a widget from the cards at the top. Each card shows whether it's Live, Switched off, or Not live yet for your venue.
- Choose a Display mode:
- Floating button — a corner button opens a compact panel (the classic widget).
- Full-page takeover — a corner button opens it full-screen over your site, like visiting the page directly.
- In your page — the widget renders inline exactly where you paste the snippet, no button at all. The What's on strip is always this mode — and when you have no upcoming events it takes up no space at all.
- Your own button — nothing visible from ResoFlow; your site's existing button opens the widget (you point the snippet's data-trigger at your button). It opens the same full-page takeover as Full-page takeover.
- Style it — button text (up to 32 characters — a new venue's booking button says "Book a table" until you change it), colour and position. Until you pick a colour, the button follows your brand colour from Branding automatically (Reset to your brand colour puts it back).
- In that widget's own card, press Get the code, then tap the code — it's copied — and paste the snippet into your website just before the closing </body> tag (or, for the in-page modes, exactly where the widget should appear). It looks like this:
<script src="https://resoflow.co.uk/widget.js" data-restaurant="your-restaurant-id" data-widget="book" data-mode="takeover" async defer></script>
You can paste several widgets' snippets on one page — for example an inline menu, a What's on strip and a floating booking button together. One form per page: if a page carries the same widget twice — inside the page and as a floating button (say the booking form in your page and a "Book a table" button) — the form stays inside the page and the button becomes the way back to it: it hides while the form is on your guest's screen (so it never sits over the form) and appears once they scroll away, and tapping it scrolls straight back to the form instead of opening a second one. A different widget's button (gift cards beside an in-page booking form) works as normal. Pasting the same snippet twice by mistake does no harm — the second copy is simply ignored.
How an "In your page" widget fits your site
An "In your page" widget is made to look like part of your page:
- No box of its own — it has no background, so your page shows through around the cards; its buttons wear your brand colour. If your page is dark and your widgets are light (or the other way round), it keeps its own background so every word stays easy to read.
- Your site's font — it uses the font your page uses wherever your guest's device has that font, and its own clean font otherwise. To choose, add data-font="Georgia" (any font name) to the snippet, or data-font="none" to keep the widget's own.
- Grows to fit — it is exactly as tall as each step of the booking, so nothing is cut off and there's no inner scrollbar. If your website builder keeps it in a box of a fixed height, the widget scrolls inside that box instead.
- Scrolls with your page — scrolling with a mouse wheel, a trackpad or a finger over the widget scrolls your page, as it would over any other part of it.
- While it loads — the widget's space shows soft grey shapes of the booking form, with a button in your brand colour, until the booking appears — never a blank white box.
- Follows the space you give it — in a wide space the booking summary sits beside the choices; in a narrow column or on a phone it sits underneath.
Changes reach your site without re-pasting
You never need to re-paste a snippet. Widgets fetch your settings fresh, so anything you save here — text, colour, position, even switching a widget's display mode — appears on your website within a minute. If you pasted the original booking snippet before these options existed, it still works exactly as before, and you can upgrade how it displays using Default display mode — no website changes needed.
There's also a master Show widgets on your website switch: turn it off and every ResoFlow widget vanishes from your site within a minute.
When online bookings are switched off
You choose what the booking widget does if you pause online bookings: show a "bookings are currently closed" notice (the default), or hide the widget entirely — the two buttons are Show a "bookings closed" notice and Hide the widget, and the notice itself is headed "Online bookings unavailable" and asks guests to call or walk in.
The Order online button
Order online is a button for your website that opens your ordering page — for collection or delivery — as a full page, never inside your site: paying for an order always happens on your own ordering page (on your own domain, if you've connected one). It's live while collection or delivery is switched on, and it's always a floating button, so there's no display mode to choose. Style its text, colour and position like any other widget, then press Get the code in its card.
Websites allowed to show your widgets
On this page, Websites allowed to show your widgets is one list for every widget — on any plan, with or without the Your website product (its editor's Embed on another site row points here). Add your own website's addresses (type them as you'd say them, for example www.yourvenue.co.uk — the address with www. and without it count as one). Once there's at least one, browsers won't show any of your widgets on another website, and bookings, gift card purchases, ticket sales, loyalty sign-ups and waitlist joins from anywhere else are refused, pointing the guest at your own page — so nobody can copy your code onto their own site. Leave the list empty and your widgets work on any website, exactly as they always have. Adding or removing an address takes effect when you press Save changes, and then works within about a minute, even while your ResoFlow website is live — it never waits for Publish changes.
The live preview
The live preview — beside the settings on a wide screen, under them on a phone or tablet — shows the selected widget in each mode on a sample page showing your venue's name, address and cover photo (and your domain once Your domain is live). The preview opens your real pages — it even carries a notice saying anything completed there is real — so click around freely, but don't complete a test booking or purchase unless you're happy to cancel it afterwards.
The sample page is smaller than a real website, so See it full size (above the preview) opens the widget over your whole screen at the size your website will show it: the 440 × 680 panel for a floating button, the full-page sheet (up to 1,100 pixels wide) for a takeover or your own button, and the full width of a page for "In your page". Close (or Esc) brings you back.
Inside a widget your venue is named in a small header — your logo, your name and what the widget is (for example "Gift cards") — rather than your cover photo, so the form starts near the top, even in the small panel on a phone held sideways. Every widget wears the same look as your venue page — its style, your colour and your one Light or dark choice — so when you change the look, your widgets follow; the menu, What's on and venue-page widgets also wear your tint, and the What's on strip wears your colour too. A window a widget opens (a policy, for example) appears in the part of the widget your guest can see, even when an "In your page" widget is taller than their screen.
What guests get
Everything works exactly as it does on your pages directly — deposits, no-show card capture, gift card purchase and delivery, ticket buying, loyalty sign-up and the waitlist. Cards and Google Pay work inside embedded widgets; Apple Pay is the one exception — Apple doesn't allow it inside another site's embedded frame, so Apple Pay users can pay by card instead. The embedded menu is view-only: order-at-table stays on the QR codes at your tables.
One note for your own site's records: the widget stores nothing on your website or your visitors' browsers on your domain — everything it remembers lives inside ResoFlow's own pages.
If the widget doesn't look right
Not live yet? Your widgets stay hidden on your website until you press Go live on Your set-up — the code is right, it just waits, and Website widgets says so at the top while you're not live. Its own preview still shows each widget as your guests will see it — a private preview only you (and your admins) can see; nothing can be booked or bought through it until you go live. Paste it now and the button appears the moment you go live. A booking form you've placed inline (data-mode="inline") doesn't leave a blank meanwhile: it shows a small card — "Online booking opens soon", with Call and your phone number when your venue page shows one — so guests who find your website today can still book by phone. (A venue whose only product is its ResoFlow website goes live by publishing it.)
Widget not showing or out of date? Clear your site's cache and check while logged out.
Widget won't scroll, or looks squeezed? A squeezed or cut-off booking window on a computer was a ResoFlow fault fixed in v3.3.x — contact support if you still see it.
Step-by-step for your website builder
If you're on one of the common website builders, these walk through exactly where the snippet goes: Squarespace · Wix · WordPress · Shopify.
Related: How do I share my online booking page? · How do I get more bookings from Google, Apple Maps and social media? · How do I add my logo, colours and images? · How do I create and print QR codes for my venue?