Header
The header: logo, menu, mega menus, search, account and bag.
The header: logo, menu, mega menus, search, account and bag.
- Where it can go: Header group only
- Area: Header, footer and cart
- File:
sections/header.liquid
Section settings#
| Setting | Type | Default | What it does |
|---|---|---|---|
| Menu | Menu | main-menu | Nested items open a panel. |
| Customer account menu | Menu | Leave empty to show Shopify's default account links. |
Search#
| Setting | Type | Default | What it does |
|---|---|---|---|
| Popular searches menu | Menu | main-menu | A menu of links, for example to collections or to search results. |
| Popular searches heading | Text | Popular searches | |
| Popular products collection | Collection | Its first products show, in the collection's sort order. | |
| Popular products heading | Text | Popular products | |
| Products shown | Slider 2 to 8 | 4 |
Scrolling#
| Setting | Type | Default | What it does |
|---|---|---|---|
| Sticky header | Choice | On scroll up | Options: Always, Always, smaller on scroll, On scroll up, None. |
| Transparent on home page | On/off | Off | Only over a full-width image, slideshow or video with no top spacing as the first section. Over anything else the header stays solid. |
| Transparent on about page | On/off | Off | Pages using the page.about template. Only over a full-width image with no top spacing as the first section. |
| Text and icons | Choice | Light | While the header is transparent. Light suits dark images. Options: Light, Dark. |
Developer notes#
Header. Top-level items with children open a mega panel; on mobile the menu is a full-screen sheet. Motion and keyboard behaviour: <header-component> in assets/header.js. Two static blocks hold the menu blocks: Desktop holds Mega menu blocks, each the panel of the menu item it names; Mobile holds Mobile menu blocks, each that item's tab in the mobile menu. header.js puts them in place of the defaults.