Skip to main content
The Horizon header is a highly customizable component that supports multiple layouts, transparent overlays, sticky positioning, and responsive behavior.

Key Features

  • Flexible Positioning: Position logo, menu, search, and localization in custom layouts
  • Transparent Header: Support for transparent headers on home, product, and collection pages
  • Sticky Header: Choose between always sticky, scroll-up sticky, or never sticky
  • Two-Row Layout: Split header elements across top and bottom rows
  • Mobile Navigation Bar: Optional horizontal scrolling navigation for mobile
  • Mega Menu Support: Rich dropdown menus with images, products, and collections

Header Configuration

Layout Settings

The header uses a three-column grid system (left, center, right) that you can configure:
Configure where the logo appears in the header:Options:
  • left - Logo on the left side
  • center - Logo in the center (default)
  • right - Logo on the right side
Setting ID: logo_position

Two-Row Header

Split header elements across two rows for more layout flexibility:
Row Options:
  • menu_row: Place menu in top or bottom row
  • search_row: Place search in top or bottom row
  • localization_row: Place language/country selector in top or bottom row

Transparent Header

Enable transparent headers that overlay page content:
Settings:
  • enable_transparent_header_home - Enable transparency on homepage
  • home_color_scheme - Choose default or inverse color scheme
When both transparent and sticky headers are enabled, transparency is disabled when the header becomes sticky.
Control when the header sticks to the top of the viewport:
Options (enable_sticky_header):
  • always - Header always stays at top (default)
  • scroll-up - Header appears when scrolling up
  • never - Header scrolls normally

Header Actions

The header actions include search, cart, and account icons.

Action Display Styles

Choose between icon or text display:
Settings:
  • actions_display_style: icon or text
  • actions_font_size: 12px to 18px (when using text)
  • actions_font: Choose font family
  • actions_text_case: none or uppercase

Localization

Display language and country/currency selectors:

Localization Settings

Settings:
  • show_country - Display country/currency selector
  • country_selector_style - Show flag icon
Code:

Appearance Settings

Section Dimensions

Borders and Dividers

Bottom Border:
  • border_width: 0-5px, 0.5px increments
Row Divider (when using two rows):
  • divider_width: Thickness between top and bottom rows (0-5px)
  • divider_size: page-width or full-width

Color Schemes

Mobile Behavior

On mobile devices (< 750px), the header automatically switches to a drawer menu:

Mobile Grid Layout

The mobile header uses a 5-column grid:
The mobile layout automatically reorganizes elements. Custom positioning settings may not apply on mobile.

Schema Settings

JavaScript API

The header component is loaded at header.js and provides:

Custom Events

The header responds to scroll events and manages:
  • Sticky state transitions
  • Transparent to solid color transitions
  • Submenu height calculations
  • Mobile drawer state
  • Navigation - Menu and mega menu configuration
  • Search - Search modal and predictive search