Skip to main content
Embedding Bookwhen within your website

Add your Bookwhen public schedule to your website

Eloise avatar
Written by Eloise
Updated over 2 weeks ago

This article covers:


Locating your button link, URL link and embedded iframe code

To find your page links:

  1. Open your Public page, then select Customise page in the top right corner:

    Public page with arrow pointing at 'Customise page'

  2. There are three options under the HTML code for your page section:

    Customise page with the 'HTML code to your page' section highlighted

    1. Button link

    Select Button link and copy the code for a Book Online button that you can use on your website to link directly to your schedule page.

    Button preview showing 'Book online'

    2. Standard link

    Select Standard link, then copy the code to add an embedded URL link to your website. You can amend the text that appears between the "> and </a> sections:

    <a href="https://bookwhen.com/example">Book online</a>

    The link will then appear like: Book online.
    ​

    3. Embedded iframe

    Select Embedded iframe, then copy the code to embed iframe in your website. When pasted, your schedule will appear on your website, and customers can book events through the iframe.

πŸ’‘ To note: If you have set an alert message on your public page, the iframe will display it within the iframe. It will not display the banner, logo, or title section.


Embedding your schedule on a specific website provider: Wix, Squarespace and WordPress

πŸ’‘ To note: The Bookwhen team writes these articles, and we aim to keep them up to date. However, embedding processes may have changed since they were written.



Filtering the iframe

If you'd like to embed an iframe for a specific event, you’ll need to use the URL extension from the View details page of that event.

To find this:

  1. Open the public page and select the event.

  2. Select View details by the event on the right-hand side of the screen:

    Public page with arrow pointing at the 'View details' button:

  3. You can find the URL extension in the address bar:

    Public page with arrow pointing at the URL address bar

  4. The URL extension then needs to be inserted into the iframe code. In the example below, the event-specific extension is shown in bold:

<iframe src="https://bookwhen.com/example/iframe/e/ev-snsh-20231027110000" frameborder="0" scrolling="yes" seamless="seamless" style="display:block;border:none;width:100%;height:900px;"></iframe>


Resizing the iframe

πŸ’‘ To note: Resizing the iframe requires additional coding. If you're unfamiliar with coding or not a web developer, we recommend contacting someone who can assist with this step.

Auto-resizing

To enable auto-resizing, you can include a script linked to:
πŸ“Œ https://cdn.bookwhen.com/js/iframe_resizer.js

Alternatively, you can write your own script based on the code in the link above. The script allows Bookwhen’s iframe to send a message to the parent window with data that includes the height of the iframe content. You can use this data to adjust the height as needed or insert our script to handle it automatically β€” no extra coding required!


Changing the iframe language

You can change the language in the iframe by updating the public page link to its localised version.

For example:

Instead of using:
πŸ“Œ https://bookwhen.com/flowandbalance/iframe

Use the localised version:
πŸ“Œ https://bookwhen.com/de/flowandbalance/iframe

Adding /de switches the iframe to German. You can replace this with other language codes as needed.

Complete Code Example:

<iframe src="https://bookwhen.com/de/flowandbalance/iframe" frameborder="0" scrolling="yes" seamless="seamless" style="display:block;border:none;width:100%;height:900px;"></iframe>

Language codes

  • Danish: da

  • Dutch: nl

  • English (British): en-GB

  • French: fr

  • German: de

  • Hungarian: hu

  • Italian: it

  • Norwegian: no

  • Polish: pl

  • Spanish: es

  • Swedish: sv

Example links:


Embedding the Passes page

To embed the Passes section of your public page, insert 'passes' into the iframe URL. For example:

<iframe src="https://bookwhen.com/example/iframe/passes" frameborder="0" scrolling="yes" seamless="seamless" style="display:block;border:none;width:100%;height:900px;"></iframe>

This ensures the Passes section appears first in the embedded iframe. However, customers can still switch between Passes and other schedule sections:
​

Schedule sections with arrow pointing at the 'Passes' tab


Embedding the Memberships page

To embed the Memberships section of your public page, insert 'memberships' into the iframe URL. For example:

<iframe src="https://bookwhen.com/example/iframe/memberships" frameborder="0" scrolling="yes" seamless="seamless" style="display:block;border:none;width:100%;height:900px;"></iframe>

This ensures the Memberships section appears first in the embedded iframe. However, customers can still switch between Memberships and other schedule sections.

Schedule sections with arrow pointing at the 'Memberships' tab


Important notes about the iframe

πŸ’‘ To note: The iframe only displays your schedule, events, and alert banner. It does not include banner images, buttons, the footer, or any other additional edits on your page.

Iframe vs API

Check out the differences between the iframe and API features and iframe limitations.

Website Builder Compatibility

  • Some website builders, such as Wix and GoDaddy, treat embedded links as iframes, which may cause issues with the Button link and Standard link not working as expected.

  • These builders often require links to open in a new tab or window.

  • If your links are not working correctly, try using an amended HTML code with target="_blank", which ensures the link opens in a new tab.

Example adjustments:

Button link

Default:

<a href="https://bookwhen.com/example" title="Book online"><img src="https://d1abtw6bgq2xi2.cloudfront.net/images/bookonline_button.png" alt="Book online" style="width:105px;height:22px;" /></a>

Amended (opens in a new tab):

<a href="https://bookwhen.com/example" target="_blank" title="Book online"><img src="https://d1abtw6bgq2xi2.cloudfront.net/images/bookonline_button.png" alt="Book online" style="width:105px;height:22px;" /></a>

Standard link

Default:

Amended (opens in a new tab):

<a href="https://bookwhen.com/example" target="_blank">Book online</a>


πŸ’¬ Need extra help?

  • For the quickest response, contact us via live chat on our homepage or your account. Buddy, our trusty chatbot, will assist first and pass you to a support team member if needed.

  • Prefer email? Send us an email instead.

Thank you! πŸ•Ί

Return to the top ⬆️


Tags: embedding, embed, website, iframe, integrate, integrating, class, class pass

Did this answer your question?