Beds24 widget: let guests book on your own website
A Beds24 widget puts booking on your website, but most of Beds24’s free widgets hand your guests over to the Beds24 booking page. Here is what each one does, what changes on a phone between an iframe and a script widget, what Wix, Squarespace and Webflow need, and how to embed the two-line Bookpage24 widget that keeps the whole booking on your page.
What does a Beds24 widget do?
Beds24’s booking widgets are free for Beds24 customers. The availability calendar, booking box and booking strip collect dates on your site, then send guests to the Beds24 booking page to book. Only the iFrame keeps the booking on your page, with the mobile and third-party cookie limits Beds24 itself describes. A script widget, such as the one included with Bookpage24, builds the search, rooms and booking form directly in your page and adapts to phone screens.
Beds24 says “all widgets are available in over 30 languages” and names WordPress, Wix, Squarespace and Joomla among the website builders they work with (Beds24). You set up each widget in your Beds24 settings, then paste its code into your site. What matters for your guests is where each one takes them:
| Beds24 widget | On your website | Where the booking happens |
|---|---|---|
| Availability calendar | A calendar of free dates | On your Beds24 booking page, which opens with the clicked date as arrival date |
| Booking box or strip | A small search form | On your secure Beds24 booking page |
| iFrame | Your Beds24 booking page, inside a frame | In the frame, on your page |
With the calendar, box and strip, guests pick dates on your site and book on the Beds24 page: simple and reliable. But that page has its own design, and to restyle the widgets themselves, Beds24 notes that “CSS needs to be added directly in your web site” (Beds24 wiki).
In short: Beds24’s free widgets send guests to the Beds24 booking page, and Beds24 itself calls iFrames on mobile devices “problematic”. To keep the whole booking on your site, use a script widget such as Bookpage24’s, or on Wix, the Bookpage24 hosted page behind a “Book now” button.
iFrame or script widget: what changes on a phone?
To keep the booking on your page, there are two techniques. An iframe is a window showing another website, here your Beds24 booking page. A script widget builds the search, rooms and booking form directly in your page.
Beds24 generates iframe code in its widget settings, under (SETTINGS) BOOKING ENGINE > BOOKING WIDGETS > iFrame GENERATOR, and is frank about the drawbacks (Beds24 wiki): “Using iFrames are convenient but may have a sub optimal usability experience”, “iFrames on mobile devices are problematic”, and third-party cookie blocking “can also block our ability to pass data from the widget to the iFrame”. It even suggests opening the booking page in a new tab instead.
| What changes | Beds24 iFrame | Bookpage24 script widget |
|---|---|---|
| Height | Set by the frame; long steps can scroll inside a box | Grows and shrinks with each step |
| Phone screens | The framed page has to fit inside the frame | Adapts to the width of your page |
| Design | The framed page keeps its own look | Takes your colours and fonts |
| Cookies | Third-party cookie blocking can stop data reaching the frame | Sets no cookies and loads no trackers |
Whatever you embed, test it on a real phone, in a private window, through a complete search.
Wix, Squarespace, Webflow or plain HTML: where the code goes
Most website builders have an element for custom code, and each has its catch. At the time of writing (October 2026):
| Website | Where the code goes | What you need | Bookpage24 recommendation |
|---|---|---|---|
| Wix | Embed HTML element, shown in an iFrame | – | Hosted page behind a “Book now” button |
| Squarespace | Code Block | A plan that allows custom code | Two-line widget |
| Webflow | Code Embed element | A plan that allows custom code | Two-line widget |
| WordPress | Bookpage24 block or shortcode | WordPress 6.0+, PHP 7.4+ | Plugin |
| Plain HTML | The page’s HTML, where the form should appear | Access to your HTML files | Two-line widget |
- Wix: Wix’s help centre says the HTML element “displays your code within an iFrame, and if the content is larger than the iFrame, it will get cut off and will show scroll bars”, and suggests a mobile-friendly alternative on phones (Wix). Beds24’s wiki adds that “unlike almost all other website builders Wix does not support JQuery” (Beds24 wiki). On Wix, we recommend the Bookpage24 hosted page behind a “Book now” button. Embedding the widget is possible but to be tested on your site: Wix runs HTML elements from its own domain, so add
https://*.filesusr.comto your allowed websites first. - Squarespace: paste the two lines into a Code Block. Scripts there need a plan that allows custom code, so check yours first, then check the published page in a private window.
- Webflow: use a Code Embed element, which also needs a plan that allows custom code. Test on the published site.
- Plain HTML site: paste both lines into the page where guests should book, at the spot where the form should appear, and upload the page. Nothing else to install.
- No custom code on your plan? Link a “Book now” button to your hosted booking page instead.
On WordPress, skip the code: the Bookpage24 WordPress plugin adds the same booking engine as a block or a shortcode.
Embed the Bookpage24 widget in two lines
Bookpage24, a Beds24 booking engine that replaces the standard Beds24 booking page without leaving Beds24, includes a script widget: plain JavaScript, with no iframe, no jQuery, no trackers, no cookies and no third-party libraries. Once your Beds24 account is connected, your Bookpage24 dashboard gives you two lines like these:
<div class="db" data-tenant="your-hotel" data-fallback="https://beds24.com/booking2.php?propid=…"><a href="https://beds24.com/booking2.php?propid=…">Book now</a></div>
<script src="https://…/embed/your-hotel.js"></script>
The first line is a block that already holds a “Book now” link to your Beds24 booking page; the second loads the script, which puts the booking form in the link’s place. If our server is down, the link stays, and guests can still book on your Beds24 page.
- Connect Beds24 with an invite code giving access to bookings, inventory and properties. A Beds24 invite code is valid 24 hours and works once.
- Prepare your rooms: real names, photos, descriptions, colours. The diagnosis flags any room type Beds24 cannot sell.
- Allow your website: in your Bookpage24 settings, add your site’s address to Allowed websites, with and without
wwwif both are used. - Paste the two lines into your builder’s custom code element or your page’s HTML, where the booking form should appear, and publish.
- Test on a phone: search, choose a room and a rate, check the total.
Guests then search, compare rooms and rates, and book on your page, in English, German, French, Italian or Spanish (Beds24’s own widgets cover more languages). Availability and prices are read live from Beds24 and checked again at booking, and the city tax is shown upfront. The booking is written into Beds24, whose channel manager closes the room on your other channels. Deposits and full payments are made on the Beds24 payment page with your own Stripe or PayPal: see our guide to deposits and card guarantees on Beds24.
Widget on your site or hosted booking page?
You do not have to choose. Along with the widget, Bookpage24 gives you a hosted booking page: a link that works without touching your site.
- The widget belongs on a dedicated “Book” page, where guests expect to search and book.
- The hosted page link goes behind “Book now” buttons, on your Google Business Profile, in emails and on social media. It is also our recommendation for Wix.
- Both can run side by side, and Beds24 stays your PMS and channel manager either way.
Compare the plans on our pricing page, or see the live demo with a real hotel’s prices. If you would rather not touch code, have our team set it up: you send a Beds24 invite code and your photos, we prepare everything, and you approve before it goes live.
Frequently asked questions
Are Beds24 booking widgets free?
Yes. Beds24’s widgets and its WordPress plugin are free for Beds24 customers. The Bookpage24 widget comes with the Bookpage24 booking page: $29, $49 or $79 a month per property (excl. VAT), no commission, one month minimum. There is no card to sign up, and you pay when your page goes live (connect Beds24 – free diagnosis).
Do Beds24 widgets keep guests on my website?
The availability calendar, booking box and booking strip do not: a click opens your Beds24 booking page. The iFrame does, with the mobile and cookie limits Beds24 itself describes.
Can I put a Beds24 widget on Wix?
Beds24 lists Wix as supported, but its wiki notes that Wix does not support jQuery, and Wix shows embedded code in an iFrame. With Bookpage24, we recommend the hosted page behind a “Book now” button on Wix; the embedded widget is possible, but to be tested on your site.
Does the Bookpage24 widget work on Squarespace or Webflow?
Yes, if your plan allows custom code: paste the two lines into a Code Block on Squarespace or a Code Embed element on Webflow. Without custom code, link a “Book now” button to your hosted booking page.
Will the widget show my Beds24 discounts and minimum stays?
Yes. Prices and availability come from Beds24 on every search, so discounts, minimum stays and closures set in Beds24 apply as they are.
Where do guests pay?
On the Beds24 payment page, with your own Stripe or PayPal, if you ask for a deposit or full payment. You can also take no payment online, or ask for a card guarantee: the card is entered on Beds24’s card form and nothing is charged.
Beds24 is a trademark of Beds24 GmbH. We are an independent service, not affiliated with Beds24.