Conditional menu- Shella theme

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