Conditional menu- Shella theme

Topic summary

Goal: show a different navigation menu to customers tagged “wholesale” in the Shella theme.

Context: The author followed a tutorial (ecomexperts.io) to add a wholesale area. Final step requires editing header.liquid to render a conditional menu.

Issue: In header.liquid, the expected loops aren’t present:

  • {% for link in linklists.main-menu.links %}
  • {% for link in linklists[section.settings.main_linklist].links %}

Because these selectors aren’t found, the author can’t insert the suggested Liquid snippet that assigns menu_handle based on customer tags and includes site-nav with the chosen menu.

Clarifications: A helper asked which theme is used; author confirmed Shella (MPIThemes). The helper then requested collaborator access to investigate.

Current status: No solution posted yet; no code location identified for Shella’s header. Code snippets are central to the issue.

Open questions:

  • Where in Shella’s theme files is the main navigation rendered (if not in header.liquid with linklists)?
  • How to adapt the conditional menu_handle approach for Shella’s structure.
Summarized with AI on December 27. AI used: gpt-5.

Hi! I am trying to add code for conditional navigation menu for the Shella theme.

I am creating a wholesale area for people that we tag with wholesale. I followed this: https://ecomexperts.io/blogs/liquid-tutorial-shopify/add-wholesale-area-to-your-shopify-store-without-the-app-easy-step-by-step-tutorial but am having issues with the last step:

Show a different navigation menu to wholesalers

  1. In header.liquid I can’t find either of the following codes:

{% for link in linklists.main-menu.links %} or {% for link in linklists[section.settings.main_linklist].links %}

  1. I need to replace that with

{% assign menu_handle = ‘main-menu’ %}
{% if customer %}
{% if customer.tags contains ‘wholesale’ %}
{% assign menu_handle = ‘main-menu-wholesale’ %}
{% endif %}
{% endif %}
{% include ‘site-nav’, linklist: menu_handle %}

Can someone help? Thanks!!

Hi @victoriatga ,

Can you please let me know which theme you are using so that I can assist you on?

Thank you

Hi @LuffyOnePiece It is the shella Shopify theme: https://mpithemes.gitbook.io/shella-shopify-theme. Appreciate your help!

Hi @victoriatga ,

Can you provide me the collab access so that I can help you out?

Thank you