Add online booking to your WordPress site
There's no plugin to install or keep updated. Copy one snippet from Bookingly, paste it into a Custom HTML block and your booking page appears on your own site.
Start free All website buildersIncluded on every plan, even the free one. Free for 100 new bookings a month.
What you'll need
- A Bookingly account with online bookings switched on
- A self-hosted WordPress.org site, or a WordPress.com plan that allows custom code, such as Business or higher
- An Administrator login, because WordPress removes scripts from pages edited by some other roles
How to embed your booking page in WordPress
First, copy your code. In Bookingly, open More > Setup > Online bookings, scroll to Share, select the Embedded tab and select Copy code. It looks like this, with your own address:
<script src="https://app.bookingly.com/scripts/widget.js"
defer
data-bookingly-url="https://yourbusiness.bookingly.com"
data-bookingly-mode="embedded"
data-bookingly-resize="false">
</script>
- In WordPress, open Pages and edit your booking page, or add a new one called Book Now.
- Add a Custom HTML block where the booking page should appear and paste the code into it.
- Select Publish or Update, then View Page. Scripts often don't run in the editor, so check the live page.
- Add the page to your menu under Appearance, using a full-width template if your theme has one.
Or add a Book Now button with a popup
Copy the code from the Popup tab instead, and paste it into WordPress with a button that has the class bookingly-button. Use either the embedded code or the popup code on a page, not both.
<button class="bookingly-button">Book Now</button>
<script src="https://app.bookingly.com/scripts/widget.js"
defer
data-bookingly-url="https://yourbusiness.bookingly.com"
data-bookingly-button-selector=".bookingly-button"
data-bookingly-mode="popup">
</script>
Why a snippet instead of a booking plugin
Your services, staff, hours and bookings live in Bookingly, not in your WordPress database. WordPress only shows the booking page.
- Change a price or a roster in Bookingly and your site shows it straight away
- No booking plugin to update when you update WordPress or change theme
- Online bookings land in the same calendar as the ones you add yourself
Block editor, Classic Editor or a page builder
The same code works however you build pages.
- Block editor: add a Custom HTML block
- Classic Editor: switch from Visual to Text (or Code) before pasting
- Elementor, Divi and other page builders: add an HTML or Code element
If something isn't right
- The code disappears after saving
- Sign in as an Administrator. Some security plugins also strip scripts.
- Nothing appears on the live page
- Clear any caching plugin or host cache, and check the whole snippet was pasted.
- An optimisation plugin breaks it
- Exclude the Bookingly script from its minify, defer or delay settings.
Questions about WordPress booking
Do I need a WordPress booking plugin?
No. You paste Bookingly's code into a Custom HTML block. There's no plugin to install.
Does it work on WordPress.com?
Only on a plan that allows custom code, such as Business or higher. On other plans, add your direct booking link as a button or menu item.
Can I use a Book Now button instead of embedding the page?
Yes. Paste a button with the class bookingly-button and the popup code into a Custom HTML block, and your booking page opens over your own page.
Step-by-step guide
Try it on your own website
Bookingly is free for 100 new bookings a month, then one flat price for unlimited bookings. WordPress is a trademark of its owner, and this guide isn't endorsed by them.
Sign up for free