You can show your whole booking page inside a page on your WordPress website, so customers can book without leaving your site. This uses Bookingly's Embedded option and a WordPress Custom HTML block.
This works on self-hosted WordPress sites (WordPress.org). On WordPress.com, adding scripts needs a plan that allows custom code, such as the Business plan or higher. You also need to be signed in as an Administrator, because WordPress removes scripts from pages edited by some other user roles. If your site can't run the code, use the Direct link option from Add Online Booking to Your Website and add it as a button or menu link instead.
Before you start
- Make sure online bookings are turned on and your services, staff hours and location hours are correct. See Setting Up Your Booking Page.
- Have your WordPress dashboard open in another browser tab so you can switch between the two.
Step 1: Copy your embed code from Bookingly
- In Bookingly, open More > Setup > Online bookings and scroll to Share.
- Select the Embedded tab.
- Select Copy code.
The code is specific to your business, so always copy it from your own account.
Step 2: Add a Custom HTML block in WordPress
- In your WordPress dashboard, go to Pages and open the page where you want customers to book, or select Add New Page and give it a title such as Book Now.
- In the editor, select the + (Add block) icon where the booking page should appear.
- Search for Custom HTML and select it.
- Paste the code you copied from Bookingly into the block.
- Select Update (or Publish for a new page).
Using the Classic Editor? Switch the editor from Visual to Text (or Code), paste the code where you want the booking page to appear, then select Update.
Using a page builder such as Elementor or Divi? Add an HTML or Code element to the page and paste the code there.
Step 3: Check it works
The Custom HTML block shows a preview in the editor, but scripts often don't run there, so the booking page may not appear until the page is live.
- Select Update or Publish, then View Page.
- On the live page, your booking page should appear where you placed the block.
- Try selecting a service to check it loads and scrolls properly.
If you only see a blank area, try a private or incognito browser window, clear any caching plugin or host cache, and check the code was pasted in full, starting with <script and ending with </script>.
Add it to your site menu
- Go to Appearance > Menus (or Appearance > Editor > Navigation on block themes).
- Add your Book Now page to the menu.
- Save the menu.
Make it fit your page
The page height is controlled by the data-bookingly-resize setting in the code you pasted:
falsegives the booking page a fixed height with its own scrollbar.truemakes the booking page grow to fit its content and scroll with your WordPress page, with no inner scrollbars. This usually looks best on a dedicated booking page.
To change it, edit the Custom HTML block, replace data-bookingly-resize="false" with data-bookingly-resize="true" (or the other way round), then update the page.
Tips for a clean result:
- Give the booking page a page of its own so it has room to display.
- If your theme offers a full-width or "no sidebar" page template, use it.
Alternative: a Book Now button with a popup
If you would rather keep your page short, show a Book Now button that opens your booking page in a popup. Customers stay on your page while they book.
- In Bookingly, open More > Setup > Online bookings, scroll to Share, select the Popup tab and select Copy code.
- In WordPress, add a Custom HTML block (as in Step 2 above) where the button should appear.
- Paste this button into the block, then paste the code you copied from Bookingly directly underneath it:
<button class="bookingly-button">Book Now</button>- Select Update and check the live page.
Keep the button and the code in the same block, and use either the embedded code or the popup code on a page, not both.
Changing how the button looks. To change the wording, edit the text between > and </button>. To make it match your site, you can use a link instead, such as <a href="#" class="bookingly-button">Book Now</a>, and style it with your site's own styles. Any button or link with the class bookingly-button opens the popup, and you can add the class to as many buttons or links on the same page as you like.
Troubleshooting
Problem | What to try |
|---|---|
Nothing appears on the live page | Clear any caching plugin or host cache, and check the code was pasted in full. |
The code shows as text on the page | Make sure you used a Custom HTML block (or the Text tab in the Classic Editor), not a Paragraph block. |
The code disappears after saving | Your user role may not be allowed to add scripts. Sign in as an Administrator, or ask the site owner to add it. Some security plugins also strip scripts. |
I can't add scripts on WordPress.com | You need a plan that allows custom code. Otherwise use the Direct link option. |
The booking page has two scrollbars | Change |
It shows the wrong business or a "page not found" message | Check the address in the code ( |
A script optimisation plugin breaks it | Exclude the Bookingly script from minify, defer or delay settings in your optimisation plugin. |
Good to know
- The booking page inside WordPress looks the same as your own booking page, including your colours, logo and layout.
- Any change you make to your services or booking page settings shows up on your website straight away. There is nothing to update in WordPress.
- Customers who book this way appear in your calendar like any other online booking.
- For a Book Now button that opens a popup instead, see the alternative above, or the Popup option in Add Online Booking to Your Website.