Menus and mega menus

Build your navigation in Shopify, then connect it to the header and turn busy items into mega menus.

A mega menu is a large panel that opens from a menu item, with room for pictures, brands and products. It helps when you have more to show than a short dropdown can hold.

A Core mega menu showing departments on the left, product types in the middle, and brand logos and best sellers on the right

Your links live in your Shopify menu. The theme decides how they look. So you always start in the admin.

Build the menu first

In your admin, go to Content > Menus and open your main menu. Shopify menus have three levels, and each level has a job in the theme:

  • Top level: what shows in the header, such as Women.
  • Second level: the columns or tabs of the panel, such as Clothing.
  • Third level: the links inside them, such as Dresses.

An item with sub-items already opens a simple dropdown with no extra setup. If that is enough for your catalog, you can stop here.

Connect it to the header

In the theme editor, open Header in the section list and click Primary menu. Choose your menu under Menu.

Open menus on decides whether panels open on Hover or Click. To make one item stand out, such as a sale, type its title into Highlighted menu item, exactly as it is in your menu.

Open menus on also decides what a top-level item does when it has a dropdown or a panel:

SettingPointing at the itemClicking its titleOn a touch screen
HoverOpens the panelFollows the item's link. The small arrow beside it opens the panel.The first tap opens the panel, and the second follows the link.
ClickDoes nothingOpens and closes the panelA tap opens and closes the panel.

With Click, the item's own link is not used, and the tabs of a tabs mega menu change on click too. So put a link to that page inside the panel: a sub-item, or Link label and Link where the block has them. An item with no link of its own has nothing to follow, so clicking its title opens the panel with either setting.

The section list in the theme editor with the Header opened, showing its rows and blocks

Add a mega menu

Add a block to the Primary menu

Under Primary menu, click Add block and choose one of the three kinds described below.

In the block's Menu item setting, type the title of the item it belongs to, as it is in your menu. Capitals and punctuation do not matter, so "new arrivals" matches "New arrivals". A different word or a typo will not match.

Set up what goes inside

Each kind has its own options. Hover over the item in the preview to see the result.

Choose the right kind

KindHow it looksBest for
Tabs (mega menu)A list of tabs on the left. Each tab opens its own panel.Large catalogs with several departments under one item. Core uses it for Shop by departments.
Link lists (mega menu)Columns of links, with optional products or image cards beside them.Most stores. Hanger uses it for most of its menu.
Collections (mega menu)A grid of collection images or brand logos.Shopping by category or by brand.

Tabs

The sub-items of your menu item become the tabs, and their own sub-items become image tiles. A tab works with no further setup. To change one, add a Tab panel block and type the tab's title into Tab, exactly as it is in the menu.

Layout decides what the panel shows:

LayoutShowsFits
TilesThe tab's sub-items as image tiles, full widthDepartments with a good picture for each type
Tiles and side contentTiles on the left, this panel's blocks on the rightAdding brands or a campaign
Lists and side contentEach sub-item with its own links, this panel's blocks on the rightA deep catalog with a third level of links

Side content means the Brand logos, Products and Custom card blocks you add inside the panel. They do not show on Tiles, so change the Layout first. Tiles: collections replaces the tiles with up to 8 collections you pick.

Shopify's three levels run out quickly here. If you need another level of links under each tile, make a separate menu and choose it in Menu for the tabs (optional). Add that menu to the Mobile drawer too, or phones will not show it.

Each sub-item is a column, its title is the column heading, and its sub-items are the links. You can show up to five columns.

To add products beside the links, choose a Collection in the block. It shows that collection's first products in the collection's own sort order. For best sellers, choose a collection sorted by Best selling. You can also add Custom card blocks for a campaign image.

Collections

Each sub-item is a tile, showing the image of the collection it links to. Set Tile style to Logos for brands. Logos come from the collection metafield custom.logo, or from the collection image.

Rows limits how many rows the panel shows, which keeps a long brand list in check. Collections past the last row are left out on desktop, and the menu on phones still lists them all.

Side content blocks

These blocks go inside a mega menu, next to its links or tiles.

BlockGoes inWhat it shows
Brand logosTab panel, Link listsUp to six collections as logos, under a Heading. The logo comes from custom.logo, or the collection image.
ProductsTab panelThe first products of a Collection, in its own sort order
Custom cardTab panel, Link listsAn image with a Tag, a Heading and a link. Style puts the text under the image or on it.
Featured productCollectionsOne product with its brand's logo, photo, name and price

In Link lists, brand logos sit above the products, and custom cards sit under them.

Featured product links to a brand, not always to the product. When a collection's handle matches the product's vendor, the whole card opens that collection. Otherwise it opens the product.

Mega menus from a preset

Each preset's demo has mega menus tied to its own menu titles, such as Burrow's Shop by pets. Your store does not have those menus or items, so until you match them, those blocks show nothing and your items open a simple dropdown.

You have two ways forward: create your menu, then change each block's Menu item to one of your titles, or delete the blocks you do not need. A block's Menu for the tabs (optional) also needs a menu of your own. Your preset's guide describes what its demo uses.

On phones

Phones show the Mobile drawer, not the mega menus, and it has its own settings. It lists your menu level by level.

The Hanger mobile menu: a list of top-level items with arrows, then smaller help links and a sign-in row

Seen in the Hanger demo

Something not working?

The mega menu does not open. Check the words in the block's Menu item against your menu. A changed menu title also needs changing here.

The panel is empty. The menu item needs sub-items, unless you added custom cards.

A tab's brands or products do not show. Set that Tab panel to a Layout with side content.

An item lost its panel on a smaller laptop. It moved into More, where mega menus do not open. Shorten your menu or move the item earlier.

A collection tile has no picture. The tile uses the collection's own image. Add one to the collection in your admin.

All settings: Primary menu
SettingWhat it does
Menu
Open menus onOptions: Hover, Click.
Highlighted menu itemType the title of one menu item, exactly as it is in the menu (for example Deals). It is shown in the highlight color. Leave empty for none.
Menu text
Font size
Uppercase
Menu weightSteps up from the body font's style, in the label font (Theme settings > Typography). Uppercase letter spacing: Typography > Caps spacing. Options: Regular, Medium, Semibold, Bold.
Show arrowsA small arrow after the items that open a dropdown or a mega menu.
Hover and open styleBar: a thick line along the bottom of the row. Underline: a thin line under the text. Options: Bar, Underline.
Mega menu bottom linkThe link at the bottom of a mega menu (Shop all ...). Label: small, underlined, in capitals when Typography > Small label case is Uppercase. Options: Text with arrow, Underlined label.
Mega menu link sizeThe links in the columns of the mega menus. Options: Regular, Small.
Show onOptions: All devices, Desktop only, Mobile and tablet only.
All settings: Tabs (mega menu)
SettingWhat it does
Menu itemType the title of the menu item this mega menu belongs to, exactly as it is in the menu (for example New arrivals).
Show menu icon on the menu itemThe three-line icon before the title of the menu item that opens these tabs.
Menu for the tabs (optional)Leave empty to use the sub-items of the menu item: they become the tabs, and their own sub-items the tiles. Shopify menus have three levels, so choose a separate menu here when you need one more level of links under each tile (lists layout). Add that menu to the Mobile drawer too.
All settings: Tab panel
SettingWhat it does
TabType the title of the first-level menu item this panel belongs to, exactly as it is in the menu above.
LayoutTiles: the tab's sub-items as image tiles, full width. Tiles and side content: tiles on the left, the blocks of this panel on the right. Lists and side content: every sub-item as a list of its own links, the blocks of this panel on the right. The two Tiles layouts show the second menu level only; choose Lists to show third-level links. Options: Tiles, Tiles and side content, Lists and side content.
Heading above the tiles
Tiles: collectionsUp to 8 collections shown as image tiles, for the two layouts with tiles. Empty: the tiles are the sub-items of this tab in the menu.
Tab icon
IconOptions: None, Laptop, Phone, Tablet, TV, Monitor, Game controller, Headphones, Camera, Speaker, Watch, Printer, Keyboard, Router, Chip, Plug, Smart home, Paw print, Dog, Cat, Bone, Fish, Bird, Rabbit, Turtle, Small pet, Squirrel, Feather, Shell, Scissors, Syringe, Food, House, Sofa, Armchair, Bed, Table lamp, Floor lamp, Desk lamp, Light bulb, Bath, Door, Cooking pot, Refrigerator, Washing machine, Blinds, Flower, Ski, Hiking boot, Tent, Running shoe, Climbing harness, Paddle, Bike, Luggage.
Custom iconOptional. Upload a single-color .svg or .png with a transparent background. It takes the text color of the row and replaces the icon above.
Custom icon styleOne color: the icon is filled with the text color (a single-color .svg or .png). Original colors and Photo show the image as it is, a little larger. Options: One color, Original colors, Photo in a circle.
All settings: Link lists (mega menu)
SettingWhat it does
Menu itemType the title of the menu item this mega menu belongs to, exactly as it is in the menu (for example New arrivals).
Show lines between columns
Show collection images in column headingsUses the image of the collection each column heading links to.
Link label
Link
Product carousel (optional)
CollectionShows the first products of the collection, in the collection's own sort order. For best sellers or new arrivals, choose a collection sorted that way (set Sort in the collection: Best selling, Newest).
Heading
Products to show
Custom cards
Cards per row
Products and cards beside the links
WidthOptions: One third, Half, Two thirds.
All settings: Collections (mega menu)
SettingWhat it does
Menu itemType the title of the menu item this mega menu belongs to, exactly as it is in the menu (for example New arrivals).
Tile styleImages: the picture of each linked collection with its name. Logos: for brand collections; uses the collection metafield custom.logo, or the collection image. Options: Images with names, Logos.
Logo sizeOptions: Small, Large.
Columns
RowsThe most rows of tiles in the panel. Collections past the last row are left out here; the menu on phones lists them all. Options: All, 1, 2, 3, 4.
Heading
Link label
Link
Featured products heading
Featured products widthOptions: Half, One third.
Show lines between columns
All settings: Brand logos
SettingWhat it does
Heading
CollectionsUp to six. The logo comes from the collection metafield custom.logo, or the collection image.
Link label
LinkFor example your Brands page. The link shows under the logos once it has a label and a link.
All settings: Products
SettingWhat it does
Heading
CollectionShows the first products of the collection, in the collection's own sort order. For best sellers or new arrivals, choose a collection sorted that way (set Sort in the collection: Best selling, Newest).
All settings: Custom card
SettingWhat it does
StyleOptions: Classic: text under the image, Overlay: text on the image.
Image
Tag
Heading
Link label
Link
All settings: Featured product
SettingWhat it does
Product

On this page