Skip to content

Header ​

This guide describes setting up the Header section.

Use the section to provide your store's visitors with a menu for navigating the pages in your store. The Header section typically displays across the top of your store's pages.

​An example Header section on a store's todo page.

​The previous image shows a Header section in Theme editor. In the section's settings, on the left, the Use icons checkbox is set to on. This checkbox setting displays Header section items using icons instead of text labels. In the top-right, the Header section's Menu and Cart items are displayed as icons on a store's Homepage.

For general guidance with modifying sections, refer to Sections overview, and Shopify help: Sections and blocks.

Set up a Header section ​

To set up a Header section:

  1. Go to Customize theme.

    At the top of the page, use the dropdown to select the Homepage template.

    Note

    The section is accessible from all page templates, excluding the Checkout, Password and Gift card pages. By default, Theme editor displays the section in a page's Header area.

  2. From the side menu, select Header.

    The Header section selected in Theme editor.

  3. Select a setting described in the following table.

Setting nameDescription
Logo > Theme settings (link)Follow the Theme settings link to access the Theme settings > Logo menu in Theme editor.
Logo > Logo max widthAdjust the Logo max width slider to set a maximum width for the section's image. The minimum slider value is 10px or pixels, and the maximum value is 500px.

The width of the image does not exceed the width of the section.
Utility links > CartUse the Cart dropdown to set how the link to your store's shopping cart displays inside the section. The options are: Show on mobile and desktop, Show on mobile only, Show on desktop only, and Hide (off).

You can also set up the section to display the Cart link inside a Horizontal menu block. Refer to Configure a block within a Header section.
Utility links > Drawer menuUse the Drawer menu dropdown to set how the drawer menu displays inside the section. The options are: Show on mobile and desktop, Show on mobile only, Show on desktop only, and Hide (off).

To set up the section's Drawer menu inside a Menu block, refer to Set up a Header menu block.
Utility links > Enable searchSelect the Enable search checkbox to show/hide the Search field inside the section.
Utility links > Use iconsSelect the Use icons checkbox to show/hide icons inside the section. If you set the checkbox to on, Cart and Search items are displayed as icons inside the section. If you set the checkbox to off, Cart and Search items are displayed using text labels inside the section.
Layout > Logo block width on desktopUse the dropdown Logo block width on desktop to set a width for the section's logo area. This setting applies to desktop display devices. The options are:
  • One sixth (1/6)
  • One quarter (1/4)
  • One third (1/3)
  • Five twelfths (5/12)
  • One half (1/2)
Layout > Utility links block width on desktopUse the dropdown Utility links block width on desktop to set a width for the section's Utility links area. This setting applies to desktop display devices. The options are:
  • One sixth (1/6)
  • One quarter (1/4)
  • One third (1/3)
  • Five twelfths (5/12)
  • One half (1/2)
Layout > PaddingAdjust the Padding slider to resize the empty space that's displayed around the section. The minimum slider value is 0px or pixels, and the maximum value is 2px.
Layout > Align contentSelect the Align content radio buttons to set a position for the section's content. The options are Top or Center.
Layout > Sticky headerSelect the Sticky header checkbox to turn on/off keeping the Header at the top of the page.
Overlay header > Enable on home pageSelect the checkbox Enable on home page to turn on/off positioning the Header over the Homepage, as an overlay.
Overlay header > Enable on collection pagesSelect the checkbox Enable on collection pages to turn on/off positioning the Header over Collection pages, as an overlay.
Overlay header > Enable on product pagesSelect the checkbox Enable on product pages to turn on/off positioning the Header over Product pages, as an overlay.
Overlay header > Enable on blog postsSelect the checkbox Enable on blog posts to turn on/off positioning the Header over Blog post (article) pages, as an overlay.
Overlay header > Enable on page templatesSelect the checkbox Enable on page templates to turn on/off positioning the Header as an overlay on pages created from page templates.
Overlay header > Color scheme when overlay is enabledIf the section's overlay options are enabled, use the selector Color scheme when overlay is enabled to set up a color scheme for the section's overlay area. Use the Change dropdown to set the overlay's color scheme to Scheme 1 or Scheme 2. Select Edit to configure the overlay's current color scheme. Refer to Colors.
Overlay header > Theme settings (link)Follow the Theme settings link to access the Theme settings > Colors menu in Theme editor.
Overlay header > Use alternate logoSelect the Use alternate logo checkbox to set/unset the alternate logo as the section's logo image.
Overlay header > Theme settings (link)To add an alternative logo, follow the Theme settings link to access the Theme settings > Logo menu in Theme editor.
Color > Color schemeUse the Change dropdown to set the section's color scheme to Scheme 1 or Scheme 2. Select Edit to configure the current color scheme. Refer to Colors.
Color > Theme settings (link)Follow the Theme settings link to access the Theme settings > Colors menu in Theme editor.
Typography > Desktop font size scaleAdjust the slider Desktop font size scale to set a font size for the section's text on desktop display devices. The minimum value is -2 and the maximum is 4. Refer to Shopify help: Customize your font sizes.
Typography > Mobile font size scaleAdjust the slider Mobile font size scale to set a font size for the section's text on mobile display devices. The minimum value is -2 and the maximum is 2. Refer to Shopify help: Customize your font sizes.
Theme editor > Show layout grid guidelinesSelect the checkbox Show layout grid guidelines to show/hide grid guidelines in Theme editor. The grid lines can help you customize the section's layout.
Theme settingsSelect Theme settings to access additional settings for the section. Refer to Section theme settings menu.
Custom CSSSelect Custom CSS. In the box, enter custom CSS styles to apply only to the current section. Refer to Shopify help: Add custom CSS. To apply custom styles to your entire online store, refer to Theme settings > Custom CSS.

Configure a block within a Header section ​

A default Header section contains one Horizontal menu block. To configure a block inside the section:

  1. Go to Customize theme.

    At the top of the page, use the dropdown to select the Homepage template.

  2. From the side menu, expand the Header section menu.

  3. To configure an existing block, select the block from the side menu.

    To add a new block, select Add block, choose a block to add, and then select the block you added.

    The Header's Add block menu in Theme editor.

    Note

    Inside the section, you can add, remove, show/ hide, or move blocks. Refer to Configure blocks inside a section, and Shopify help: Sections and blocks.

  4. Apply a block setting described in the Table: Header blocks.

Table: Header blocks ​

The following table describes the blocks inside the Header section, and their corresponding settings.

The blocks indicated with an asterisk * are contained in a default section. To configure a block, refer to Configure a block within a Header section.

Block nameBlock descriptionBlock setting(s)
Horizontal menu *Display a navigation menu inside the section with menu items aligned horizontally.
  • Use the Menu selector options to set up a menu inside the block. Refer to Set up a Header menu block.
  • Select the Nested navigation style dropdown to set a layout style for nested navigation menu items inside the block. The style options are Dropdown, Mega menu, and Drawer.
  • Select the Desktop text alignment dropdown to set a position for text inside the block. The options are Left, Center, Right, and Justify. This setting applies to desktop display devices.
  • Select the checkbox Show cart link as last menu item to show/hide a link to your store's Cart page as the last menu item inside the block.
  • Select the checkbox Separate menu items with a comma to show/hide a comma as a separator for menu items inside the block.
  • Select the dropdown Layout > Block width on desktop to set the block's width. This setting applies to desktop display devices. The options are:
    • Fill remaining space
    • One sixth (1/6)
    • One quarter (1/4)
    • One third (1/3)
    • Five twelfths (5/12)
    • One half (1/2)
  • Select Remove block to delete the block from the section.
Vertical menuDisplay a navigation menu inside the section with menu items aligned vertically.
  • Use the Menu selector options to set up a menu inside the block. Refer to Set up a Header menu block. This menu won't show dropdown items.
  • Select the Show menu heading checkbox to show/hide the menu's heading (title) text inside the block.
  • Select the dropdown Layout > Block width on desktop to set the block's width. This setting applies to desktop display devices. The options are:
    • Fill remaining space
    • One sixth (1/6)
    • One quarter (1/4)
    • One third (1/3)
    • Five twelfths (5/12)
    • One half (1/2)
  • Select Remove block to delete the block from the section.
Rich textDisplay an area containing formatted text inside the section.
  • In the Paragraph box, enter text to display inside the block. Format the text and add links using the Text editor pane.
  • To display text from a dynamic source, select the Insert dynamic source icon, beside the Paragraph box, and then choose a metafield to add. Refer to Shopify help: Metafields.
  • Select the Text alignment dropdown to position text inside the block to the Left, Center, or Right.
  • Select the dropdown Layout > Block width on desktop to set the block's width. This setting applies to desktop display devices. The options are:
    • Fill remaining space
    • One sixth (1/6)
    • One quarter (1/4)
    • One third (1/3)
    • Five twelfths (5/12)
    • One half (1/2)
  • Select Remove block to delete the block from the section.
LocalizationDisplay a menu for selecting different languages and currencies supported by your store.
  • Follow the link Language selector > Language settings to open the Languages area of your Shopify admin page. Use the page to set up language options for your store. Refer to Shopify help: Localization and translation.
  • For stores that support multiple languages, select the Show language selector checkbox to show/hide a language selector inside the block. The language selector allows visitors to switch between different language versions of your store.
  • Follow the link Country/region selector > Payment settings to open the Payments area of your Shopify admin page. Use the page to add countries, regions, and currencies to your store. Refer to Shopify help: Payments.
  • For stores that support multiple countries/ regions, select the checkbox Show country/ region selector to show/hide a region selector inside the block. The region selector allows visitors to switch between your store's supported regions and currencies.
  • Select the Layout > Display radio buttons to set a layout style for the block's content to Horizontal or Vertical.
  • Select the Layout > Desktop alignment dropdown to set the block's position to the Left, Center or Right. To use the setting, set the Display radio button option to Horizontal. This setting applies to desktop display devices.
  • Select the dropdown Layout > Block width on desktop to set the block's width. This setting applies to desktop display devices. The options are:
    • Fill remaining space
    • One twelfth (1/12)
    • One sixth (1/6)
    • One quarter (1/4)
    • One third (1/3)
    • Five twelfths (5/12)
    • One half (1/2)
  • Select Remove block to delete the block from the section.
SpacerDisplay an area of empty space inside the section.
  • Select the dropdown Layout > Block width on desktop to set the block's width. This setting applies to desktop display devices. The options are:
    • One twelfth (1/12)
    • One sixth (1/6)
    • One quarter (1/4)
    • One third (1/3)
    • Five twelfths (5/12)
    • One half (1/2)
  • Select Remove block to delete the block from the section.

Set up a Header menu block ​

To set up a menu inside a menu block, apply the following settings in Header > Menu (block).

  • If the block has no menu, to select a menu, choose Select menu. Enter the name of a menu into the Search box, or pick a menu from the list, and then choose Select.

  • To edit the current menu, select the Menu link. The link opens the Navigation menu editor in Shopify admin. Use the editor to modify the menu. Refer to Shopify help: Add, remove, or edit menu items in your online store.

  • To create a new menu, select Change > Change menu, and then follow the Create menu link. The link opens the Navigation > Add menu page in Shopify admin. Use the menu editor to create a new menu, and then the select the new menu. Refer to Shopify help: Add, remove, or edit menu items in your online store.

    The menu modification options in Theme editor for the Header section

  • To replace the current menu, select Change > Change menu. Enter the name of the replacement menu into the Search box, or pick a replacement menu from the list, and then choose Select.

  • To delete the current menu, select Change > Remove menu.