Different menus for specific collection-pages (Enterprise Theme)

Topic summary

Implementing different navigation menus per collection page in Shopify’s Enterprise theme using Liquid conditionals on collection handles. The goal is to show specific menus for collections like “onderdeel,” “onderhoud,” and “overig,” with a fallback to a homepage menu.

Current approach: Conditional includes based on collection.handle and concern that the ‘main-menu’ handle is not the actual main menu, potentially conflicting with other code. Clarification requested on where to insert the code (theme.liquid vs. header.liquid) and how to avoid syntax errors.

Recommendations:

  • Add the logic in the collection page section (e.g., Sections/main-collection.liquid) rather than theme.liquid or header.liquid, so it only affects collection templates.
  • Use a tutorial showing similar logic in the Dawn theme; the approach may be transferable to Enterprise. A video guide was provided.

Key terms: “collection handle” is the URL-friendly identifier of a collection; Liquid is Shopify’s templating language; “include” renders a snippet.

Status: No confirmed implementation or resolution yet. Action items are to place code in the collection section and consult the provided video for guidance.

Summarized with AI on January 3. AI used: gpt-5.

You can try to add code into main-collection.liquid or something like that in your Sections folder in Online Store > Themes > Edit code