Set up menus
Main menu
- In Shopify admin, click Content.
- Click Menus.
- Open Main menu. If you do not have one, click Add menu and name it Main menu.
- Add a link for each department.
- Click Add menu item.
- Type the name customers will see.
- In Link, choose Collections, then pick the collection.
- To put a smaller group under a department, drag that item to the right under the parent.
- Shopify allows three levels in this menu. Stop at the third level.
- Click Save.
Header
- Open the theme editor.
- Click Header.
- Set Menu to Main menu.
- Click Save.
Branch menus
Use a branch menu when you need a level deeper than three, or when you want the children in their own menu.
- Click Content, then Menus.
- Click Add menu.
- Name the menu
branch-plus the parent’s handle. Example: the parent link handle ispuzzles, so the menu name isbranch-puzzles. - Leave the handle that Shopify writes. It will be
branch-puzzles. - Do not type two hyphens. Shopify turns them into one hyphen, and you cannot edit the handle later.
- Add the child links.
- Click Save.
- In the theme editor, click Header.
- Turn on Branch menus.
- Set Branch prefix to
branch-. - Click Save.
The parent item in the main menu should have no children of its own. The theme then loads the branch menu. Hover or click that item in the Departments panel to open the next column.
For three levels on the demo store, create these menus. The main menu stays a flat list of departments.
| Menu handle | Links |
|---|---|
branch-toys | Puzzles, Games, Play |
branch-puzzles | Jigsaws, Brainteasers |
branch-kitchen | Tableware, Cookware |
branch-garden | Plants, Outdoor living, Planters |
branch-beauty | Skincare, Makeup, Bath |
branch-puzzles is the third level under Toys. Without branch-toys, Puzzles never appears, so the third level has nothing to open. If you would rather not make a menu for a department, set that collection’s custom.fg_children metafield to the same child collections. The theme uses the branch menu first, then that metafield.
If you already have a menu that was saved with two hyphens, leave it. The theme still looks for that older handle.