SR

Accommodation search templates

The Booking Search component in Emit comes with 9 different hero design templates. Each template gives the search section a different visual identity — from a minimal compact one to a full-screen panoramic view.

Overview of all templates

# Template CSS class Description
1 Default (none) Dark gradient, centred text, inline search
2 Clean bks-hero-clean Light background, large bold text, pill search bar
3 Fullscreen bks-hero-fullscreen 100vh background image, text on the left, search at the bottom
4 Centered bks-hero-centered 520px background image, centred text, overlapping search, wave at the bottom
5 Compact bks-hero-compact Minimal — only the search bar on a light background
6 Panoramic bks-hero-panoramic 85vh background image, arrows, centred text, curved bottom
7 TopBar bks-hero-topbar Search at the top, banner below with a background image and orange gradient
8 Floating bks-hero-floating Full background image with a blue gradient, a "floating" white search at the top
9 Split bks-hero-split Left-right gradient (warm gold), image visible on the right, text on the left

Detailed description of each template

1. Default

The default design without an extra CSS class.

  • Background: Dark gradient
  • Text: Centred, white
  • Search: Inline, below the heading
  • Overlay: A dark gradient matching the background
  • Best for: Universal use, sites that want a modern, neutral look

2. Clean

A clean, minimal design with a light background.

  • Background: Light grey (#f8f9fa)
  • Text: Large, bold, dark
  • Search: Pill-shaped (rounded) search bar
  • Overlay: Semi-transparent light
  • Best for: Sites that prefer a clean, airy look

3. Fullscreen

An impressive full-screen view.

  • Background: Image/slider at 100vh (the whole screen)
  • Text: Left-aligned, italic style
  • Search: Positioned at the bottom of the section
  • Overlay: Dark gradient
  • Best for: Luxury accommodation, visually striking sites

4. Centered

A centred design with a wave effect.

  • Background: Image 520px tall
  • Text: Centred
  • Search: Pill-shaped, overlapping the bottom part (overlap effect)
  • Overlay: Dark
  • Special effect: A wave on the section's bottom edge
  • Best for: Creative sites, boutique hotels

5. Compact

The most minimal template — only the search bar.

  • Background: Light
  • Text: No heading/subheading
  • Search: A plain bar on a light background
  • Overlay: Semi-transparent light
  • Best for: Sites where the search is the only CTA, integration into existing pages

6. Panoramic

A wide panoramic view.

  • Background: Image/slider at 85vh
  • Text: Centred (subheading above the heading)
  • Search: Pill-shaped, centred
  • Overlay: Dark gradient
  • Special effect: A curved bottom of the section
  • Arrows: Slider navigation arrows
  • Best for: Destinations, large accommodation, agencies

7. TopBar

Search at the top, banner below.

  • Background: Image only on the lower part (below the search)
  • Text: On the background image
  • Search: At the top of the section (order: -1), above the image
  • Overlay: Orange gradient on the left side
  • Best for: Sites that want a prominent search above the hero section

8. Floating

A floating search above the background.

  • Background: Full image with a blue gradient
  • Text: Centred below the search
  • Search: A white pill-shaped bar that "floats" at the top (order: -1)
  • Overlay: Blue gradient
  • Best for: A modern, elegant look, travel agencies

9. Split

A left-right split design.

  • Background: Image visible on the right side
  • Text: Left-aligned
  • Search: At the bottom, overlapping the lower part
  • Overlay: Left-right gradient (warm gold)
  • Best for: Premium sites, real estate, exclusive accommodation

How to choose a template

  1. Go to the Page Editor
  2. Click the Booking Search component
  3. In the editor panel find the Hero Design section
  4. Click the desired template in the visual picker (3×3 grid)
  5. Save the page

Tip: Every template has a small thumbnail in the editor showing the element layout.

Background images

All templates support background images. You can add one or more images for an automatic slider.

How to add a background image

  1. In the editor panel find the Background Images section
  2. Click Add Image
  3. Choose an image from the Media Library
  4. Repeat for extra images (they become a slider)

Slider functionality

When you add more than one image:

  • Automatic rotation every 6 seconds
  • Fade transition between images
  • Navigation dots
  • Pause on hover

Search fields

Every template shows the same search functionality. The fields you can show:

Field Description
Search Text search by name
Check-in Arrival date (date picker)
Check-out Departure date (date picker)
Guests Number of guests (picker with +/- buttons)
Custom fields Dropdown filters from the bookable items' custom fields

How to set the visible fields

  1. In the editor panel, the Search Fields section
  2. Switch fields on/off as needed
  3. Custom fields load automatically from /api/bookable-filters

Responsive design

All templates are fully responsive:

  • Desktop: A horizontal grid with all fields in a row
  • Tablet: Automatic wrapping into 2 columns
  • Mobile: A vertical stack, fields one below the other

The search adapts automatically to the number of visible fields using CSS grid.

Frequently asked questions

Can I use different templates on different pages?

Yes! Every page that has a Booking Search component can have a different hero template. The setting is stored per page.

What if I do not add a background image?

The template uses its default background (a gradient or colour). A background image is optional but recommended for the more visually striking templates (Fullscreen, Panoramic, Split).

How do I change the overlay colour?

The overlay colour is defined in CSS for each template and cannot be changed through the admin panel. Customising it requires a CSS change in the booking-search-1.hbs file.

Does the slider affect performance?

Not significantly. Images are lazy-loaded and the slider uses CSS fade transitions instead of JavaScript animations, which is optimal for performance.

This guide is part of the official knowledge base for Emit (emit.rs). Emit is a platform for building your own website, online store and booking system - with AI or by yourself. Free during the introductory period.

Start for free What is Emit →