Insert the Booking Engine search widget into your website
How to generate the Booking Engine search widget from SmartPMS (Settings > Booking Engine > Actions > Widget), configure its properties, colors, fonts, and occupancy, and paste the HTML code into your website using any CMS. Includes code parameters, language management, and customization limits.
You are in the right place if…12 cases
- “How do I add the Booking Engine date search box to my website?”
- “Where can I find the HTML code for the widget to paste into the site?”
- “Can I change the text color of the widget button?”
- “The widget remains in Italian even if my site is in English or German”
- “Can I create a widget that shows only one room or a specific type?”
- “I have multiple properties in the Booking Engine, can I have the customer arrive directly on just one?”
- “Can I send a link to the Booking Engine with the dates already entered?”
- “Which parameters do I need to add to the URL for check-in, check-out, and number of guests?”
- “The link from my site must open the property with dates and adults already selected”
- “Deep link to the Booking Engine with pre-selected dates”
- “How do I create a direct link to the property with arrival and departure already set?”
- “Insert the search Widget on your Website”
The search widget is the box with arrival and departure dates, guests, and a search button that you can insert into your website: your guests choose the dates and are taken directly to your Booking Engine to complete the booking. It works with any site (HTML, WordPress, Wix, Joomla, and other CMS), because it is a simple snippet of code to paste.
1. Open the widget settings
- In the SmartPMS side menu, click on Settings.
- Select Booking Engine.
- Corresponding to the booking engine you want to connect to the site, click on Actions and choose Widget.
2. Configure the widget
- Property: select the property for which to generate the widget. If multiple properties are associated with the booking engine, this choice takes customers directly to the page of the indicated property, without showing the others.
- Primary color: choose the color that best suits your site's design.
- Font: set the desired font. This field is not mandatory: if you leave it blank, the widget uses your site's default font.
- Shadow: decide whether to show a shadow around the widget.
- Occupancy: configure guest options, for example, whether to show the children selection and whether to show destinations.
3. Preview and copy the code
- Click on PREVIEW to see how the widget will appear.
- When you are satisfied with the configuration, press Copy in the "Copy this code and paste it on the site" box.
The copied code is ready to use and should not be modified, unless you (or your webmaster) have good knowledge of HTML and CSS: an incorrect modification can prevent the widget from working correctly.
The code has a structure similar to this:
<be-widget
host="https://nomestruttura.bookpage.io"
property-id="123456"
booking-network-id="222"
default-adults="2"
default-children="0"
primary-color="#FD590F"
secondary-color="#A9DDD6"
background-color="#FFFFFF"
border-color="#FD590F"
button-text-color="#FFFFFF"
></be-widget>
<script src="https://cdn.ciaobooking.com/widget/js/app.js"></script>Meaning of the main parameters:
- host: the address of your Booking Engine.
- property-id: the property to which the widget takes customers.
- booking-network-id: the reference Booking Engine (Booking Network).
- default-adults / default-children: number of adults and children preset in the search.
- primary-color, secondary-color, background-color, border-color: widget colors (primary, secondary, background, and border color).
- button-text-color: color of the search button text.
Colors are indicated in hexadecimal format (e.g., #FFFFFF for white).
4. Publish the widget on the site
- Paste the code in the point of the page where you want the widget to appear.
- Save and publish (or update) the page.
If you use a CMS, usually the code should be inserted into a "Custom HTML" block or an HTML text widget. If your site is on WordPress, you can alternatively use the dedicated plugin, described in the linked guide.
5. Verification
- Open your site and check that the widget is visible and working.
- Perform a test search and verify that you arrive correctly at the Booking Engine with the selected dates and guests.
Frequently asked questions
7My site is multilingual: how do I get the widget and the Booking Engine in the right language?
The widget translates automatically based on the visitor's browser language: you can use the same code on all language versions of the site.
The Booking Engine also follows the browser language. English is the default language and is accessible without a prefix (e.g., propertyname.bookpage.io); other languages have a prefix: /it, /de, /fr. The address with /en does not exist and returns a page not found (error 404). When a visitor opens the address without a prefix, the Booking Engine detects their browser language and displays that version, remembering it for subsequent visits: the language therefore depends on the visitor's browser and not on the language chosen on your site.
If you use the native WordPress plugin widget ([native_ciaobooking]), the widget texts are fixed strings: see the plugin guide for how to translate them.
Can I create a widget that shows only one room or a specific type?
No. The Booking Engine does not support filtering by room type within a property: the widget can take the customer to a specific property (for example, a hotel), but all available types for that property will be shown on the results page. It is not possible, for example, to show only Deluxe rooms.
Can I customize the widget design beyond the available colors?
The supported customizations are those available in the Widget panel and the parameters present in the code (colors, fonts, shadow, occupancy). The content of the widget is isolated from the rest of the page, so that your site's styles do not break its appearance: for this reason, the site's standard CSS stylesheet cannot modify its details (for example, the calendar dimensions). Deeper graphic interventions are not officially supported and remain the responsibility of your web developer.
I use WordPress: should I use this code or the plugin?
You can use both. The code in this guide also works in WordPress, inserted into a custom HTML block. Alternatively, you can install the CiaoBooking Widget plugin: the [external_ciaobooking] shortcode of the plugin inserts exactly this widget, while [native_ciaobooking] is a version dedicated to WordPress with minimal styles, designed to be adapted to the theme by your webmaster. You can find the details in the linked plugin guide.
Can I create a link to the Booking Engine with dates and number of guests already set?
Yes. To the booking page address, including that of a single property, add these parameters:
sd: arrival date, in YYYY-MM-DD formated: departure date, in YYYY-MM-DD formatad: number of adults
Example, from November 10th to 13th, 2026 for 2 adults:
https://nomestruttura.bookpage.io/it/properties/123456?sd=2026-11-10&ed=2026-11-13&ad=2The guest arrives on the page with dates and guests already filled in and sees the prices immediately. The room type and Rate plan are chosen by the guest on the booking page: they cannot be set in the link. If there are children, they can add them on the page by indicating their age.
If you use a custom domain, put your address instead of nomestruttura.bookpage.io. The language prefix (/it, /de, /fr) is optional: without a prefix, the page opens in English or in the guest's browser language.
Related guides
Activation
Configuration
Activation
Activation
Configuration