Add Tablorix to your website
One booking link, four ways to use it — shared as a link, behind your own button, as a floating button or as a form in your page — and what works on WordPress, Squarespace and Wix.
Your booking link
Everything starts from one link, which you build on Settings → Widget: choose your guests’ language, a theme and your brand color, and, if you like, a party size and a date the booking page opens on, for an event. The “Booking page” tab holds the link itself, with a “Copy link” button.
The link works on its own, without any code: it opens your booking page, with your venue’s name, address and phone number. Guests can switch language there.
Four ways to use it
Settings → Widget has a tab for each, with a preview right under your theme and color. The code to copy follows under “Paste this on your website”.
- Booking page. Share the link on Instagram, on Google, in your emails or behind a QR code. No code needed.
- Your own button. Already have a “Reserve” button on your site? Set its link to your booking link, and add the script tag once, anywhere on the page. A click opens the booking page in a window over your site.
- Floating button. Add the script tag with your link in
data-launcher, once, anywhere on the page. A “Book a table” button appears in a corner and opens the same window. - In your page. Put the link where the booking form should appear, with
data-tablorixset toinline, and add the script tag once. The form takes the link’s place, as tall as its content, on your page’s own background.
One script tag per page is enough, however many buttons and links it has, and links to two of your venues on one page each open their own venue.
Without the script, or if it doesn’t load, every button and link still opens your booking page.
Where you can’t add a script, use the iframe code under “In your page”: it shows the same form in a box of fixed height, which scrolls when the form is taller.
Plain HTML and WordPress
Paste the code from Settings → Widget where the button or form should go, and the script tag once per page. On WordPress, that is any place that takes HTML. If your site removes the script tag when you save, your buttons still open your booking page, and where it keeps iframes, the iframe code gives you the form in your page.
Squarespace
Any Squarespace button can take your booking link as its link, and then opens your booking page. The window over your site, the floating button and the form in your page need the script tag, which Squarespace runs only where your plan allows custom code.
Wix
Any Wix button can take your booking link as its link, and then opens your booking page. The window over your site and the floating button need the script tag, which Wix runs only where your plan lets you add custom code to your site. In your page, Wix shows pasted code in a box of its own with a fixed height, so on Wix the form in your page is always that box: use the iframe code.
Questions
Does the booking form match my site?
It takes the theme and brand color in your link. In your page, it has no background of its own, so your page’s background shows through, and a thin rounded outline holds the form together as one block.
Does the script slow my site down?
It is small, and it loads the booking form only when a guest is about to need it: the form in your page as it scrolls into view, the window when a guest points at or taps a button.
Can my site's analytics count bookings?
Yes. When a guest books, your page receives a tablorix:booked event saying whether the booking is confirmed or waits for your approval, or that the guest joined the waiting list. It carries no guest details: those stay in the booking form, out of reach of your site’s scripts.
Can a link open the booking page in a new tab instead?
Yes: give it data-tablorix set to link, so the script leaves the click to the browser, and target set to _blank, so the browser opens a new tab. A guest who Ctrl- or Cmd-clicks any link gets a new tab anyway.