For the complete documentation index, see llms.txt. This page is also available as Markdown.

Header

The Header is the navigation area at the top of every page: your logo, main menu, localization controls, and the search, account, and cart actions. It is a global section, so changes apply across the whole storefront.

1. How to access the Header

1

Open Themes

From Shopify Admin, go to Online Store > Themes.

2

Customize your theme

Click Customize.

3

Open the Header group

In the left sidebar, open the Header group at the top of the page list.

The Header appears on most pages, so you can edit it from any template.

2. How the Header is organized

Header                      [section]
├── Header content          [container]
│   ├── Logo
│   ├── Menu
│   ├── Localization
│   └── Utility
├── Mega menu: <name>       [optional, one per menu item]
├── Mega menu: <name>
├── Menu highlight          [optional, highlights matching menu items]
└── ...

Section-level settings that control layout, height, sticky behavior, and the inside header mode.

The container holding Logo, Menu, Localization, and Utility.

Optional rich Mega menu panels that replace a standard dropdown for a specific menu item, plus Menu highlight blocks that style matching menu items with custom text colors and badges across every menu level.

See Mega menu and Menu highlight.

3. Header settings

3.1. General

Main menu

Chooses which navigation menu is displayed. Menus are created in Shopify Admin > Online Store > Navigation.

3.2. Layout

3.2.1. Desktop layout

Arranges the logo and menu on desktop. Menu split divides menu items into two groups, one on each side of the logo.

3.2.2. Mobile layout

Arranges the logo and the menu toggle on mobile.

3.2.3. Container width

Controls how much horizontal space the header content occupies.

3.2.4. Desktop height

Sets the height of the header on desktop screens from 50px to 100px (default: 60px).

3.2.5. Mobile height

Sets the height of the header on mobile screens from 40px to 80px (default: 52px).

3.3. Style

Control the section’s color scheme, background, and visual treatment. For detailed information about these settings, see Group > Style.

3.4. Inside header

These settings control how the header is displayed inside selected pages. They are available when Enable inside header is turned on.

Enable inside header

Turns on the inside header treatment. It applies only to the pages selected under Show inside header on.

  • On - Enables the inside header.

  • Off - Uses the regular header.

Type

Controls the background treatment of the inside header.

  • Solid - Keeps the header background visible.

  • Transparent - Removes the header background so the content behind the header shows through.

Width

Controls the width of the inside header bar.

  • Full: Makes the inside header bar span the full available width.

  • Boxed: Constrains the inside header bar to the theme's standard content width.

  • Custom: Sets a custom width for the inside header bar. Choose a value from 60% to 100%.

Container width

Controls the content width inside the header when Width is set to Full.

Corner radius

Controls how rounded the corners of your frame are.

  • Main corner matches the global corner radius set in your theme.

  • Small and Extra small inherit from the main corner value and scale it down proportionally for a subtler effect.

  • None removes rounding entirely for a sharp, full-bleed look.

  • Custom lets you set a precise value to match a specific design.

Margin

Adds space above and to the sides of the floating header bar. Margin values can be set separately for desktop and mobile.

3.5. Transparent-only settings

Available when Type is set to Transparent.

Color scheme

Controls the color scheme used for the header text and icons over transparent backgrounds.

  • Default - Uses the default color scheme.

  • Inverse - Uses the inverse color scheme for better contrast over the background.

Inverse scheme

Sets the color scheme used when Color scheme is set to Inverse.

For better contrast, choose an inverse scheme that keeps the header content readable against the background. For example, use a light-text scheme when the transparent header sits over a dark background.

Color schemes are managed in Theme settings → Colors.

Inverse logo color

Controls whether the logo uses its inverse version when displayed over a transparent background.

  • On - Uses the inverse logo.

  • Off - Uses the default logo.

Set the inverse logo in Theme settings → Logo and favicon.

Display background when hover

Controls whether the header background appears when shoppers hover over a menu item.

  • On - Fades in the header background while the dropdown is open.

  • Off - Keeps the header background transparent.

Show border

Controls whether a border is displayed around the transparent header.

  • On - Adds a border to define the header against the background.

  • Off - Removes the border.

3.6. Show inside header on

Controls which pages use the inside header and which color scheme is applied to each page.

Active pages

Choose where the inside header is enabled.

  • All - Applies the inside header to all supported pages.

  • Custom - Applies the inside header only to the selected page types or specific pages.

Page types

Available when Active pages is set to Custom.

Select the page types that should use the inside header:

  • Home page

  • Product page

  • Collection page

  • Collection list page

  • Cart page

  • Blogs page

  • Blog posts page

  • Search page

  • 404 page

When Type is set to Transparent, each selected page type can use either the Default or Inverse color scheme.

Specific pages

Controls whether individual pages can be targeted in addition to the selected page types. Available when Active pages is set to Custom.

  • On - Enables targeting specific pages.

  • Off - Applies the settings only based on the selected page types.

Pages (Available when Type is set to Solid and Specific pages is On)

Specifies which pages use the inside header when Type is Solid.

This is a code-style input field. Enter pages by template type and name (for example product.default, page.about-us) or exact URL paths, separated by commas.

Notation and language matching

  • Template type - The general kind of page. For example, product applies to every product page in your store across all languages.

  • Template identifier - A specific version of a template. For example, product.default applies only to product pages using the default product template, and works across all store languages.

  • Generic URL path - A path without a language prefix, such as /pages/about or /products/red-shoes, applies across every published storefront language.

  • Locale-prefixed URL path - A path starting with a published language root, such as /fr/pages/about or /fr/products/red-shoes, applies only to that language.

Examples: product, product.default, page.about-us, /pages/about, /fr/pages/about

Pages to use default scheme (Available when Type is set to Transparent and Specific pages is On)

Specifies which pages use the default color scheme in this code-style input field.

Enter template types, template identifiers, or URL paths to target the relevant pages. Separate multiple entries with commas.

Notation and language matching

  • Template type - The general kind of page. For example, product applies to every product page in your store across all languages.

  • Template identifier - A specific version of a template. For example, product.default applies only to product pages using the default product template, and works across all store languages. A custom template such as product.sale is a different identifier and needs its own entry.

  • Generic URL path - A path without a language prefix, such as /pages/about or /products/red-shoes, applies across every published storefront language.

  • Locale-prefixed URL path - A path starting with a published language root, such as /fr/pages/about or /fr/products/red-shoes, applies only to that language.

Examples: product, product.default, page.about-us, /pages/about, /fr/pages/about

Pages to use inverse scheme (Available when Type is set to Transparent and Specific pages is On)

Specifies which pages use the inverse color scheme in this code-style input field.

Enter template types, template identifiers, or URL paths to target the relevant pages. Separate multiple entries with commas.

Notation and language matching

  • Template type - The general kind of page. For example, product applies to every product page in your store across all languages.

  • Template identifier - A specific version of a template. For example, product.default applies only to product pages using the default product template, and works across all store languages. A custom template such as product.sale is a different identifier and needs its own entry.

  • Generic URL path - A path without a language prefix, such as /pages/about or /products/red-shoes, applies across every published storefront language.

  • Locale-prefixed URL path - A path starting with a published language root, such as /fr/pages/about or /fr/products/red-shoes, applies only to that language.

Examples: product, product.default, page.about-us, /pages/about, /fr/pages/about

3.7. Sticky header

Controls whether the header stays visible as shoppers scroll.

Enable sticky header

Controls whether the header remains visible while scrolling.

  • On - Keeps the header visible while shoppers scroll.

  • Off - Allows the header to scroll out of view.

Behavior

Controls when the sticky header is displayed.

  • Always - Keeps the header pinned while scrolling.

  • On scroll up - Hides the header while scrolling down and reveals it when shoppers scroll up.

Note: Behavior only applies when Enable sticky header is set to On.

Full-width when sticky

Controls whether the sticky header spans the full width of the viewport when pinned (default: On). Available when Enable sticky header is On.

  • On - Expands the sticky header to full width while scrolling.

  • Off - Keeps the header's configured width when sticky.

Enable drop shadow

Controls whether a shadow is displayed beneath the sticky header.

  • On - Adds a shadow beneath the header.

  • Off - Removes the shadow.

3.8. Spacing

Padding

Controls whether horizontal padding is added inside the header.

  • On - Adds left and right padding inside the header.

  • Off - Removes the horizontal padding.

4. Header content settings

Header content is the container holding the four visible parts of the header. It has no settings of its own. Configure each block inside it.

Displays your store logo, linked to the home page. The logo image is set in Theme settings → Logo and favicon.

Setting
Options
What it does

Link to homepage

  • On

  • Off

Makes the logo clickable, linking to the home page

Desktop height

Number (16-60px)

Sets the logo height on desktop

Mobile height

Number (16-40px)

Sets the logo height on mobile

4.2. Menu

Renders the menu chosen in Header settings > Main menu. The links, their order, and their nesting come from Shopify. This block controls how those links look and behave.

Desktop menu style
Setting
Options
What it does

Menu style

  • Classic

  • Underline

  • Boxed

Sets how the active or hovered item is indicated

Box style

  • Fill

  • Outline

Sets the Boxed style variant

Text style

  • Paragraph

  • Custom

  • Paragraph inherits the Paragraph typography style from Theme settings → Typography.

  • Custom lets you set the font size, line height, letter spacing, font weight, and case individually. See Text for details.

Gap

  • Default

  • 0–32px

  • Custom

Sets the horizontal spacing between top-level menu items

  • Default: Uses the default gap.

  • 0px–32px: Uses a predefined gap.

  • Custom: Sets a custom gap value.

Disable other items on hover

  • On

  • Off

Dims the other menu items when one is hovered

Dropdown menu trigger

  • Hover

  • Click

Chooses whether dropdowns and mega menus open on hover or require a click

Mobile menu
Setting
Options
What it does

Text style

  • Paragraph

  • Custom

  • Paragraph inherits the Paragraph typography style from Theme settings → Typography.

  • Custom lets you set the font size, line height, letter spacing, font weight, and case individually. See Text for details.

Divider

  • None

  • Line

  • Dot

Separates mobile menu items

Alignment

  • Left

  • Center

  • Right

Aligns links within the mobile panel

Gap

  • Default

  • 4–32px

  • Custom

Sets the vertical spacing between mobile menu links

4.3. Localization

Lets shoppers switch language and country or region from the header. Both selectors are configured in this block.

These selectors only appear when there is something to switch between. Add languages in Shopify Admin > Settings > Languages and countries or regions in Shopify Admin > Settings > Markets.

Language selector

Setting

Options

What it does

Language selector

  • On

  • Off

Shows the language selector in the header.

The selector only switches between languages that are already available in the store. It does not translate your store content. To translate content, use a translation app such as Shopify Translate & Adapt.

Show language code only

  • On

  • Off

Controls whether the selector displays the language code or the full language name.

  • On - Shows the language code, such as EN.

  • Off - Shows the full language name, such as English.

Country/region selector

Setting

Options

What it does

Country/region selector

  • On

  • Off

Shows the country or region selector in the header.

Show currency only

  • On

  • Off

Shows the currency instead of the country or region name.

Show country flag

  • On

  • Off

Displays a flag next to the country or region.

Custom typography

Setting

Options

What it does

Font family

  • Heading

  • Body

Selects the font family for the localization labels (default: Body). Available when Text style is Custom.

Font size

12-18px

Sets the custom font size in pixels (default: 16 px). Available when Text style is Custom.

Text color

  • Strong

  • Base

  • Light

  • Subtle

Sets the text color role for the selector labels (default: Strong).

Style

Setting

Options

What it does

Inherit color scheme

  • On

  • Off

Uses the color scheme inherited from the surrounding section when enabled.

Text style

  • Paragraph

  • Custom

  • Paragraph: Inherits the Paragraph text style from Theme settings → Typography.

  • Custom: Lets you set the font size, line height, letter spacing, font weight, and case individually. See Text for details.

Show icon

  • On

  • Off

Displays an icon next to each selector.

Show divider

  • On

  • Off

Adds a separator between the language and country/region selectors.

Spacing

Setting

Options

What it does

Padding

  • On

  • Off

Adds inner spacing around the localization controls.

Margin

  • On

  • Off

Adds outer spacing around the localization controls.

4.4. Utility

The action icons on the right of the header: search, account, and cart.

Setting
Options
What it does

Enable search

  • On

  • Off

Shows the search control.

Enable account button

  • On

  • Off

Shows the account link. Requires login links to be turned on in Shopify Admin > Settings > Customer accounts.

Type

  • Icon

  • Text

  • Mix

Displays each action as an icon, a text label, or both.

Size

  • 14px

  • 16px

  • 20px

Sets the icon size.

Style

  • Classic

  • Boxed

Classic shows bare icons. Boxed places each action in its own container.

5. How navigation behaves on the storefront

5.1. Dropdowns are built from your Shopify menu

Nest items inside your menu in Shopify Admin > Online Store > Navigation. The Header uses this menu structure to determine how navigation opens on the storefront.

Menu structure
Example from the storefront
What shoppers see

Top-level item with no children

About Us

Displays as a plain link

Top-level item with children

Men → Most Popular, Seasonal Collections, Tops & Outerwear, Bottoms

Opens a standard dropdown containing the child links (or a mega menu if configured)

Child item with its own children

Most Popular → Best Sellers, Bear-Smart Essentials, All Collections, All Products

Displays a further level of links within the dropdown or mega menu

The theme supports up to three levels of menu nesting.

5.2. Mega menus replace dropdowns

If a menu item has a matching mega menu, the mega menu is shown instead of the standard dropdown. See Mega menu.

5.3. Mobile navigation

On mobile the menu collapses into a panel opened from the header toggle. Items with a dropdown or mega menu show a forward control. Tapping it slides in the next level, with a breadcrumb back to the previous level.

Mega menu content is displayed in the same sliding panel rather than as a wide desktop panel. Menu blocks inside a mega menu can also be set to display as accordions on mobile.

Last updated