Advanced Booking Engine customization: pages, blocks, and CSS
Advanced customization of the Booking Engine using the Website Building module: creating static pages and blocks (GrapesJS block editor, copy only body content, script limitations) and inserting custom CSS from settings, using element inspection and best practices.
You are in the right place if…11 cases
- “How do I add pages like About Us or Contact to the Booking Engine?”
- “How do I insert a custom HTML block?”
- “Where do I put the custom CSS for the booking site?”
- “My script inserted in the page is not working”
- “How do I change the graphic style of the Booking Engine beyond colors and fonts?”
- “I removed my company name and VAT number from the footer but they still appear on other pages”
- “The custom footer is only visible on the home page”
- “Where do I insert an analytics tag or tracking code in the Booking Engine?”
- “I want to add a script from an external service to the booking site”
- “Guide to Creating Static Pages and Blocks in the SmartPMS Booking Engine”
- “Guide to CSS Customization of the Booking Engine”
These features are part of the Website Building module: ensure it is active for your account. They are designed for those with basic knowledge of HTML and CSS.
Primary/secondary color and fonts for titles and text can already be changed from the basic Booking Engine settings (see the guide on activating the Booking Engine). Custom CSS is used for more refined adjustments.
Pages and static blocks
Two types of elements:
- Block — a single, reusable section (welcome box, gallery, service list, contact form). In templates, it is a
BLOCK_*.htmlfile. - Page — a complete and autonomous page (About Us, Contacts, Offers), built by assembling blocks. In templates, it is a
PAGE_*.htmlfile. Static pages can be added to the booking page navigation menu.
How to use ready-made templates:
- Choose a template (
BLOCK_*orPAGE_*). - Open the file and copy only the content between
<body>and</body>. Do not copy<!DOCTYPE html>,<html>,<head>, or the<body>tags themselves: the Booking Engine already provides the page structure, and duplicating it creates conflicts. - In Booking Engine → Actions, choose Pages or Blocks for your Booking Engine.
- Create a new page or block, open the HTML code editor (icon
</>), and paste the content. - Save and check the result in preview.
Customization (drag & drop editor based on GrapesJS): replace placeholder texts, change images (templates use placeholders from picsum.photos), adapt colors using Bulma framework classes (e.g., is-primary, cb-primary-bg), and Material Design icons (mdi mdi-icon-name).
Links to dynamic pages (replace bookingenginename and the language code):
- Property List:
https://bookingenginename.bookpage.io/en/properties-list - Quote Request:
https://bookingenginename.bookpage.io/en/quotes - Promotions:
https://bookingenginename.bookpage.io/en/promotions - Specific Property:
https://bookingenginename.bookpage.io/en/properties/PROPERTY_ID
Limits to be aware of:
- JavaScript and
<script>tags are sanitized and removed from the editor for security reasons. To insert JavaScript code, use the dedicated Custom JS field in the Booking Engine settings. - Only static content is allowed (text, images, links): no backend logic.
- Maintain responsiveness using the Bulma grid (
columns/column).
Custom CSS
You can insert CSS rules without modifying the source code from the Custom CSS field in the Booking Engine settings. The rules are applied every time the site loads.
How to proceed:
- Open the Booking Engine and, on the element to modify, use right-click → Inspect to open the browser's developer tools.
- Locate the element's class or ID and test the rules in real-time in the Styles tab.
- When you are satisfied with the result, copy the rules into the Custom CSS field and save.
Best practice: identify the right element with the inspector, use !important only if strictly necessary, think mobile-first, comment your code, and verify the result on desktop, tablet, and mobile.
Some useful theme IDs: #main-searchbar, #home-search-button, #filters-siderbar, #property-hero, #property-amenities, #summary-total-card, #logo-img. The complete list of available IDs is provided in the theme documentation.
Frequently asked questions
6I pasted a script (e.g., review widget) on a page but it doesn't work. Why?
For security reasons, the page and block editor removes <script> tags and directly inserted JavaScript. To make third-party JavaScript code work, insert it into the dedicated Custom JS field in the Booking Engine settings: it is executed correctly after the page loads.
Do I need to copy the entire HTML file of the template?
No. Copy only the content between <body> and </body>, without the <!DOCTYPE>, <html>, <head> and <body> tags. The Booking Engine already provides the page structure: re-inserting it would cause display conflicts.
Where do I insert the custom CSS and where do I start?
In the Custom CSS field in the Booking Engine settings. To understand which element to modify, use the browser inspector (right-click → Inspect), locate the class or ID, test the rule in real-time, and then copy it into the field. Remember that basic colors and fonts can already be changed from the settings, without CSS.
I created a block but it doesn't appear on all Booking Engine pages. Why?
Each block is shown only on the page chosen in the Show in field and only in the block's language. If you want the same block on multiple pages or in multiple languages, create a block for each combination of page and language. A block without a set page is not shown.
Blocks appear on these Booking Engine pages:
- Home
- Search results
- Single property
- Property list
- Promotions
Other pages, such as the booking summary, Privacy Policy, Cookie Policy, quote request, and static pages, always show the standard content.
The Hook point field indicates where the block appears on the page. If there is already standard content at that point (for example, the footer), the block replaces it. To see where the hook points are located, open the Booking Engine by adding ?dev=true to the address: each point is highlighted with its name.
If a change must apply to all pages, for example changing the appearance of the footer, use the Custom CSS field in the Booking Engine settings: CSS rules are applied on every page. To remove the company name and VAT number from the footer, you can find the ready-to-use rules in the dedicated FAQ.
How do I insert a third-party script into the Booking Engine, for example, an analytics or tracking tag? Is the Website Building module required?
You can do it yourself, in a few minutes, from the Custom JS field: go to Settings → Booking Engine → Actions → Edit and paste the script into that field. It is the only place where JavaScript code is executed.
- The field is part of the standard Booking Engine settings: the Website Building module is not required.
- Paste only the JavaScript code, without the opening and closing
<script>and</script>tags. If you copy it from an email or document, check that it does not contain pieces of HTML (for example<p>or</p>): they would make the script invalid. - The script is loaded on all pages of the Booking Engine, so you only need to insert it once even if the Booking Engine collects multiple properties.
- Do not paste it into a page or a custom block: scripts are automatically removed there for security.
- Save and reload the Booking Engine to verify that the script is loaded.
Analytics and tracking tools must comply with visitor cookie consent: check with the script provider on how to manage it.
Related guides
How it works
Activation
Activation
Activation
Configuration
Configuration