Layout
Header
The site header with logo, main menu with dropdown and actions. Includes top bar, transparent, dark and sticky options.
Examples
Default
Page content goes here
From 992 px the menu shows in the bar. Below that a menu button opens the mobile navigation. Each header here has its own button and offcanvas (#mobileNav1, #mobileNav2 and so on): give every header on a page a unique id.
Multi-level dropdown
The Default header above shows it: Properties opens a 2nd level (Apartments, Houses), and Apartments → By size opens a 3rd level. Hover on desktop, click or tap on touch screens, and the arrow keys work. Nest .dropdown-submenu as deep as you need.
With top bar
Page content goes here
Transparent over a hero
Hero content goes here
Use on the home page. Add data-sticky and the header turns solid after scrolling.
Dark
Page content goes here
Classes
| Class / attribute | Purpose |
|---|---|
.site-header | Wrapper. Holds the optional top bar and the navbar. |
.is-transparent / .is-dark | Variants for use over a hero image or on a dark bar. |
data-sticky | Keeps the header at the top. site.js adds .is-scrolled for the shadow. |
.site-topbar | Slim strip for phone, email and social links. |
.site-logo + .site-logo-mark | Text logo. Swap for your own SVG or image. |
.site-menu | Desktop menu. Dropdowns use Bootstrap's dropdown JS. |
.dropdown-submenu | Put on an li inside a .dropdown-menu to add a 2nd (or 3rd) level. It holds a a.dropdown-item.submenu-toggle and a nested ul.dropdown-menu. Opens on hover or click and flips sides near the screen edge. |
.site-actions | Buttons on the right: language dropdown, wishlist, sign in, Add property and the mobile menu button. |