Cardinal docs/Navigation
Mega menu
Full-width navigation panels with columns, images and up to four promotional banners.
A mega menu turns a top-level navigation item into a full-width panel: your sub-navigation laid out in columns, with room for promotional imagery beside it. Cardinal's version has one guiding idea — the structure always comes from your Shopify menu. The block only adds presentation.
How the structure is derived
Build the menu in Content → Menus first. Cardinal reads it like this:
That means you never maintain your navigation twice. Add a collection to the menu and it appears in the mega menu immediately.
Adding a mega menu
- 1
Open the Header section
In the theme editor, click Header in the section list.
- 2
Add a Mega menu block
Under the header's blocks, choose Add block → Mega menu. The header takes up to ten.
- 3
Bind it to a menu item
Type the exact label of the top-level menu item into the Menu item field — Shop, New in, whatever it is. Matching ignores capitalization and surrounding spaces.
- 4
Set the width and options
Choose the panel width, decide whether to show images, and add a button if you want one.
- 5
Add banners
Fill in up to four promotional banners. See below for how the widths work.
Width and button
- Mega menu width caps the panel's content: Small is 720px, Medium 980px (the default), and Large uses the full width of the header.
- Button label adds a button under the links; leave it blank to hide the button. With Button link empty, the button goes to the top-level item's own page — usually the right destination for Shop all.
The five-slot grid
The panel is divided into five equal slots of 20%. The menu column always takes one. Each banner takes one to four, set by its Banner width slider — 20%, 40%, 60% or 80% of the whole panel.
So a menu column plus one 80% banner fills the row exactly. A menu column plus two 40% banners does too. If your widths add up to less than a full row, Banner alignment decides whether the banners pack against the menu column or against the far edge. If they add up to more than one row, they wrap.
Banners
Each banner is an image with an optional tag, heading, rich-text subtext and link. A banner only appears once it has an image. Overlay text on image decides whether the text sits on top of the image — with a color and opacity you control — or underneath it. Overlaid text needs a darker overlay than you expect; check it against your lightest image.
Column images
Show mega menu images renders the image of each linked resource above its column — the collection image for a collection link, the featured image for a product or article. It turns a list of links into a visual index, and it costs you nothing to maintain because the images come from the resources themselves.
Settings
The four banner groups have identical settings. Banner setting names stay the same across theme updates, so configured banners are never lost.
Block settings
Enter the name of the menu item you'd like to apply a mega menu to. Its sub items become the mega menu columns.
Small · Medium · Large
Shows the image of each linked collection, product, or article above the column.
Leave the label blank to hide the button.
Banners share the row with the menu in five 20% slots: the menu takes one, each banner takes 1 to 4. Alignment only shows when the slots aren't all used.
Left · Right
Natural · Square (1:1) · Portrait (4:5) · Landscape (4:3)
Natural · Square (1:1) · Portrait (4:5) · Landscape (4:3)
Natural · Square (1:1) · Portrait (4:5) · Landscape (4:3)
Natural · Square (1:1) · Portrait (4:5) · Landscape (4:3)
Behaviour and accessibility
- Panels open on hover on desktop, with a short delay before closing so the pointer can cross the gap between the link and the panel.
- On touch devices the chevron opens the panel; the link itself still navigates.
- Keyboard users can tab into the panel, and Escape closes it.
- Selecting a mega menu block in the theme editor opens its panel automatically, so you can see what you are editing.
Still stuck? Contact support and we will help.