Add TapBook to WordPress, Wix, Squarespace or GoDaddy
Step by step in WordPress, Wix, Squarespace and GoDaddy: put the Book button on your site, link your own buttons to your form, and add the form to a page.
WordPress, Wix, Squarespace and GoDaddy each take TapBook's code in a different place. This page goes step by step through each one, in the words on its own screens. There are up to three jobs: put the Book button on every page, make your own buttons open your booking form, and, if you like, put the form inside a page.
Get your code
- In TapBook, open Website.
- On Add it to your website, find Button on every page.
- Choose Copy. The button is named Copy the code: Button on every page. TapBook says Code copied.
On GoDaddy, copy Button on a GoDaddy page instead. GoDaddy has no code for every page, and its steps are in the GoDaddy section below.
The card says: Send these to whoever looks after your website. Each goes in once, and changes you make here reach the website by themselves.
With more than one location, choose Location first. Every location covers the whole business. A single location puts data-location in the code you copy.
Only owners can open the page. If you don't see Website, email hello@tapbook.au.
Your code already names your business. The examples below use your-business, so swap in yours. This is the shape of Button on every page:
<script src="https://tapbook.au/embed.js" data-business="your-business" async></script>Set the label, call and shortcuts on Website button, then choose Save website button, before you send the code. The label is Book online, Book a service, Book a meeting or Get a quote.
WordPress
These steps are for a WordPress site you run yourself, and for WordPress.com on a paid plan. WordPress.com's free plan can't add code. On WordPress.com, your first plugin switches on the plan's extra features, and a site with no domain of its own gets a new address ending in wpcomstaging.com. The old address redirects to it.
You add the code with WPCode, a free plugin. It works with any theme and with Elementor.
WordPress: put the button on every page
- In WordPress, open Plugins, then Add Plugin. Older versions say Add New Plugin.
- Search for WPCode. Choose Install Now, then Activate.
- In the menu, open Code Snippets, then Header & Footer.
- Paste your code into the Footer box. That puts it just before the end of every page.
- Choose Save Changes.
- If your site uses a caching plugin, clear its cache.
- Open your site in a private window. The button is in the bottom-right corner.
Keep WPCode switched on. If you deactivate it, the code stays saved but stops showing.
Elementor Pro: put the button on every page
Elementor Pro has its own place for this, on the Advanced, Advanced Solo and Expert plans. Free Elementor and Elementor Pro Essential don't have it, so use WPCode above.
- In WordPress, open Elementor, then Editor. In the left panel, open Custom Elements and choose Code. Older versions have Elementor, then Custom Code.
- Choose Add New Custom Code.
- Name it TapBook.
- Set Location to
<body> - End. - Paste your code.
- Next to Conditions, choose Edit. Leave it on Entire Site, then choose Save & Close.
- Choose Publish.
Elementor moves this menu now and then. If yours looks different, use WPCode above, which works on any Elementor site.
WordPress: link your own buttons
With the button's code on your site, any button that links to your booking page opens the form over the page. It doesn't matter whether the button opens in a new tab.
In the block editor:
- Open the page and click the button.
- In the toolbar, choose Link. The shortcut is Ctrl+K, or Command+K on a Mac.
- Paste
https://tapbook.au/your-business, with the https, and press Enter. - Save or publish the page.
In Advanced on the button, leave HTML element on Default. The other choice has no link box.
In Elementor, click the Button widget and paste the address into Link.
To open the form at one service, end the address with ?service= and a code from Service codes on the Website page. See Your own buttons.
WordPress: put the form in a page
With the button's code already on your site, the form needs only this line:
<div data-tapbook-form="your-business"></div>- Open the page. Choose the + to add a block, then Custom HTML. You can also type /html and press Enter.
- Paste the line into the block.
- Save or publish the page. The form shows on the live page, not inside the editor, so view the page to see it.
In Elementor, drag the HTML widget onto the page and paste the same line into HTML Code. The script from WPCode or Elementor does the rest.
Wix
Wix only runs custom code on a published site with a connected domain, and a connected domain needs a Premium plan. It never runs in the editor or in Preview, so check your changes on the live site. These steps work in the Wix Editor, Wix Studio and Wix Harmony.
Wix: put the button on every page
- In your site's dashboard, open Settings.
- In Development & integrations, choose Custom Code.
- Choose + Add Custom Code.
- Paste your code and name it TapBook.
- Under Add Code to Pages, choose All pages.
- Under Place Code in, choose Body - end.
- Leave the code type on Essential.
- Choose Apply.
- Open your published site. The button is in the bottom-right corner.
If you change your site's domain, Wix deletes its custom code. Add it again.
Wix: link your own buttons
In the Wix Editor:
- Click the button, then the Link icon.
- Choose Web address and paste
https://tapbook.au/your-business. - Choose Done, then publish.
In Wix Harmony, select the button, choose the Link icon on its action bar, then Choose a link and Web address.
Wix's Preview doesn't run custom code, so there the button opens your booking page. On the published site it opens the form over the page.
Wix: put the form in a page
Wix's Embed HTML is a box of its own, so it can't see the button's code. Give it both lines of Form in a page, with no data-business in them:
<div data-tapbook-form="your-business"></div>
<script src="https://tapbook.au/embed.js" async></script>- In the Wix Editor, choose Add Elements, then Embed Code, Popular Embeds and Embed HTML. Wix Studio and Wix Harmony name these menus a little differently. Look for Embed Code.
- Click the box, choose Enter Code, paste both lines, then choose Apply.
- Drag the box's edges to make it at least 700 pixels tall.
- Check its size in the mobile editor too. Wix lays out phones separately.
- Publish, and look at the live page.
Squarespace
Code injection needs the Core plan or higher, or the older Business or Commerce plans. The Basic plan doesn't have it. These steps are for Squarespace 7.1.
Squarespace: put the button on every page
- Open the Pages panel.
- At the bottom, under Custom Code, choose Code Injection.
- Paste your code into Footer.
- Choose Save.
- Check your site in a private window. Squarespace can hide custom code while you are logged in.
If you move down to the Basic plan, Squarespace switches Code Injection off, and the button goes with it.
Squarespace: link your own buttons
- Edit the page, click the button, then the pencil icon.
- On the Content tab, add a link and pick URL.
- Paste
https://tapbook.au/your-business, with the https, then choose Save.
With the button's code on your site, the form opens over the page. It doesn't matter whether the link opens in a new tab.
Squarespace: put the form in a page
The form needs this line, and the button's code in Code Injection, because that is where the script comes from:
<div data-tapbook-form="your-business"></div>- Edit the page. Choose Add block, or the +, then Code.
- Click the pencil icon on the block.
- Set Type to HTML and leave Display Source off.
- Paste the line into the block.
- Save, then look at the page in a private window. Squarespace switches off scripts in code blocks while you are logged in and editing.
GoDaddy
These steps are for GoDaddy's Websites + Marketing builder. It has no setting for code on every page, and its HTML section runs inside a box of its own. So TapBook's code for GoDaddy goes in an HTML section on each page where you want the button, and it puts the button on that page. If your GoDaddy site is WordPress, follow the WordPress steps instead.
GoDaddy: put the button on a page
On the Website page, under Add it to your website, copy Button on a GoDaddy page, not Button on every page. The button is named Copy the code: Button on a GoDaddy page. TapBook says Code copied. It already names your business, and your location if you chose one. This is the same code, with your business in place of your-business:
<script>
(function () {
var d = window.parent.document;
if (d.querySelector("script[data-tapbook-loader]")) return;
var s = d.createElement("script");
s.src = "https://tapbook.au/embed.js";
s.async = true;
s.setAttribute("data-business", "your-business");
s.setAttribute("data-tapbook-loader", "");
d.head.appendChild(s);
})();
</script>- On your GoDaddy product page, expand Websites + Marketing and choose Manage next to your site. Then choose Edit Website.
- Go to the page. Hover near the bottom and choose Add section.
- Search for HTML and choose Add.
- Paste the code you copied into Custom Code.
- Leave Title empty, or GoDaddy shows it on the page as a heading. Leave Forced Height blank. Don't set it to 0, which removes the section.
- Preview, then publish your site. Look at it in a private window.
Do this on every page that should show the button. GoDaddy has no way to add it once for the whole site. The button sits in the page's bottom-right corner, not inside the section.
GoDaddy doesn't promise that an HTML section can reach its page, though it does today. If the button ever stops showing on GoDaddy, email hello@tapbook.au.
GoDaddy: link your own buttons
- Click the button. In the right panel, make sure Show Action Button is on.
- In Link to, choose Website URL and paste
https://tapbook.au/your-business. - Preview, then publish.
On a page with the button's code, the form opens over the page. On any other page, GoDaddy opens your booking page in a new tab.
GoDaddy: put the form in a page
The form goes in an HTML section too. Give it both lines of Form in a page, with no data-business in them:
<div data-tapbook-form="your-business"></div>
<script src="https://tapbook.au/embed.js" async></script>- Add an HTML section where the form should go, as above.
- Paste both lines into Custom Code.
- Leave Title empty and Forced Height blank, so the section grows to fit the form.
- Preview, then publish.
If the button doesn't show
- Publish, then look at your site in a private window. Wix and Squarespace can hide custom code in their editors, and while you are logged in.
- On WordPress, clear your caching plugin's cache. If WP Rocket's Delay JavaScript execution is on, add
tapbook.au/embed.jsto its list of excluded scripts, or the button waits until a visitor moves or taps. - Check your plan has custom code: Premium on Wix, Core or higher on Squarespace, and Advanced or higher for Elementor Pro's Custom Code.
- Put the code in one place on a page. A second copy doesn't add a second button, but it is harder to fix.
- Check that Website is on in TapBook. See The Book button is not on the website.
After it is on the site
The button sits in the bottom corner and opens your booking form over the page. It shows only while you take bookings online. A booking from it shows in your inbox as Website button, with your website's address as the detail.
The same card also has Form in a page and Your own buttons. Those are covered in The Book button for your website.
Updated . Still stuck? Email hello@tapbook.au