Cardinal docs/Navigation
Header
Logo, menu, search, account, localization and cart — the bar that appears on every page.
The header lives in a section group, so you edit it from the top of the theme editor's section list rather than inside any one template. Whatever you set here applies to every page in the store.
Left · Center
Links shown in the account menu that opens from the header.
On mobile the menu is always a drawer.
Inline · Drawer (hamburger)
Logo
Upload a logo and set its width in pixels. With no logo, the header falls back to your shop name as text, which is a perfectly good starting point while you are still building.
- Upload at twice your display width so it stays sharp on high-density screens — a 120px logo wants a 240px file.
- A transparent PNG or an SVG sits properly on any color scheme.
- Left puts the logo on the left with the menu beside it and the icons at the far end. Center puts the menu on the left, the logo in the middle and the icons on the right, all on one row.
Navigation menu
Pick a menu you built in Content → Menus — the header starts on Shopify's Main menu. Cardinal renders whatever structure that menu has:
Desktop menu switches between an inline menu and a hamburger that opens a drawer. On mobile the menu is always a drawer, regardless of this setting — see Menu drawer.
Search
With Show search icon on, clicking the icon opens a predictive search panel that drops down from the top of the screen and suggests search terms, products, collections, pages and articles as the customer types. Arrow keys move through results and Enter opens one.
Account
The account icon is Shopify's own account component, shown on desktop and mobile. With new customer accounts, it opens Shopify's sign-in panel and, once the customer is signed in, shows their initial or Shop avatar and opens their account menu. With classic accounts, it links to the login or account page.
- Customer account menu picks the links in that account panel. It starts on
customer-account-main-menu; edit the menu under Content → Menus. - The panel follows the header's color scheme, the theme's fonts and its corner radius.
- The icon only appears while customer accounts are turned on under Settings → Customer accounts.
See Customer accounts for the difference between the two kinds of account.
Country and language selectors
The country selector appears only when you sell to more than one country, and the language selector only when you have more than one published language — so switching them on before you have set up Settings → Markets or Settings → Languages does nothing visible.
Once there is something to choose, they show in the header's icon row on desktop and at the bottom of the menu drawer on mobile. The footer's bottom bar has its own pair of switches. They are built on Shopify's native localization form, so they work with JavaScript disabled.
Cart icon
The cart icon carries a count that updates the moment something is added. What it opens depends on Theme settings → Cart: the cart drawer, or the cart page. See Cart type.
Sticky header
With Sticky header on, the bar stays pinned as the customer scrolls. Worth keeping on for stores with deep collection pages, where the cart and search should always be a click away.
Color scheme
The header takes a color scheme like any other section. A dark header above a light first section makes a strong frame; a header that matches the first section makes the page feel taller. Both are fine — just check your logo works on whichever background you choose.
Still stuck? Contact support and we will help.