Header
The bar at the top of every page, with your logo in the middle, the main menu on the left and links to search, the customer’s account and the cart on the right. On desktop the menu and links are uppercase text labels rather than icons, and the cart shows its count, as in Cart (2); on smaller screens they become icons and the menu unfolds from under the bar. The header belongs to the header group, so you set it up once and every page shows it.
Find the section
Section titled “Find the section”The header is already in place, and you don’t add it to templates.
Online Store → Themes → Customize
- In your Shopify admin, go to Online Store → Themes and select Customize on Cosmero.
- In the header group at the top of the sidebar, above the template’s sections, select Header.
- Change the settings, then select Save. The change shows on every page.
Settings
Section titled “Settings”- Logo: your logo image. When it’s empty, the header uses the logo from Brand assets in your Shopify admin, then your store name.
- Logo over images: a light version of your logo, for when the header sits over an image (see Enable header overlay). It’s used only when the header also has a logo.
- Logo width: the logo’s width on desktop, from 40 to 300 px (default 120 px). A logo is never taller than 56 px, so square and tall logos stay compact.
- Mobile logo width: the logo’s width on smaller screens, from 32 to 160 px (default 88 px).
Main menu
Section titled “Main menu”- Main menu: the menu in the header, picked from your menus in Content → Menus in your Shopify admin. It starts with your store’s main menu. The mobile menu shows it too.
- Submenu style: how nested links open on desktop. Dropdown (default) opens a list under the menu item. Mega menu opens a panel as wide as the header, with each second-level link as a column heading and its own links below it.
- Show collection images: shows the collection image above second-level links that point to a collection. On by default. Shown when Submenu style is Mega menu.
Mobile menu
Section titled “Mobile menu”- Featured collection: shows up to 8 products from the collection at the top of the mobile menu, as small product cards in a row that scrolls sideways. Each card has the product’s image, title and price and the quick add button. A “Shop all” link next to the heading opens the whole collection. The row shows only when the collection has products.
- Heading: the heading above those products (default “Our favorites”). Shown when a Featured collection is chosen.
- Show social icons in mobile menu: shows your social media icons at the bottom of the mobile menu. The links come from Social media in Theme settings, the same ones the footer’s Social media block shows. Icons show only for profiles with a link, so with no links nothing shows. On by default.
Behavior
Section titled “Behavior”- Enable header overlay: places the header over the first section of a page when that section is a Slideshow, an Image banner with Text color set to White over overlay, or a Collection banner with Layout set to Image behind text. There the bar is transparent with white text, and it turns solid once it floats or the mobile menu opens. It’s on by default.
- Sticky header: Always (default) keeps the header at the top of the screen as a floating bar while customers scroll. On scroll up hides it while they scroll down and brings it back when they scroll up. Off lets it scroll away with the page.
Colors
Section titled “Colors”- Color scheme: the bar’s colors. Its submenus, selectors and mobile menu use them too. You edit color schemes in Theme settings.
- Floating bar color scheme: the bar’s colors while it floats over the page. Shown when Sticky header isn’t Off.
Country/region and language
Section titled “Country/region and language”- Show country/region selector: lets customers pick their country/region, shown with its currency. To add a country/region, go to Markets in your Shopify admin. Off by default.
- Show language selector: lets customers pick a language. To add a language, go to Settings → Languages. Off by default.
Both selectors show on desktop and at the bottom of the mobile menu, and only when your store has more than one country/region or language.
How the mobile menu works
Section titled “How the mobile menu works”On screens under 990 px, the menu button on the left of the bar opens the menu. It unfolds from under the bar, as wide as the bar and in the bar’s colors, so the two read as one surface. A header that sits over an image turns solid while the menu is open, and the menu button turns into an X.
From top to bottom, the menu shows:
- The featured products, when you choose a Featured collection.
- Your Main menu links, large and in the heading font, as you typed them. A link with nested links opens them in place, under it, and a nested link with its own links opens one more level the same way.
- The country/region and language selectors, when they’re turned on.
- Your social media icons, when Show social icons in mobile menu is on and you’ve added profile links.
While the menu is open, the page behind it doesn’t scroll. A menu longer than the screen scrolls inside itself. The menu closes when customers select the X, tap outside the menu, press the Esc key or follow a link in it. It also closes when they open search, the cart or quick add, and when the screen gets wide enough for the desktop menu. With reduced motion turned on, it opens and closes without the unfold.
- Build your menus in Content → Menus. They can go three levels deep. A top-level item with nested links opens its submenu instead of its own page, so Cosmero repeats its link inside the submenu, unless the item links to #. The mobile menu does the same at each level.
- To check the mobile menu while you set it up, switch the theme editor’s preview to mobile and open the menu. It stays open while you change the header’s settings.
- The account link shows when your store shows sign-in links, which you set in Settings → Customer accounts.
- The search link opens the search panel, whose suggestions you set in Theme settings → Search (see Theme settings). The cart link opens the cart drawer or the cart page, depending on Cart type in Theme settings → Cart (see Cart).
- The header isn’t in the Add section list, so if you remove it, the theme editor can’t add it back.