going from Debut to Refresh missing linklist in header.liquid

Appeltjesgroen
Visitor
2 0 0
Hello everyone,
 
In my previously used theme 'Debut' (which is no longer supported, I am aware of that) for my webshop I had set up a separate wholesale part which was only visible for wholesale (tagged) accounts. I changed the header.liquid code in the nav blocks (see below). This was done by changing the linklists, but in the new theme I want to use, 'Refresh', this part of the code is gone;
 
  {% if section.settings.align_logo == 'center' %}
  <nav class="small--hide border-bottom" id="AccessibleNav" role="navigation">
    {% include 'site-nav', linklist: section.settings.main_linklist, wrapper_class: 'site-nav--centered' %}
  </nav>
  {% endif %}
 
My question is where to find this piece of code mentioned above, so I could change it to the code below, which I used in the Debut theme:
 
  {% if section.settings.align_logo == 'center' %}
  <nav class="small--hide border-bottom" id="AccessibleNav" role="navigation">
     {% 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 %}

  </nav>
  {% endif %}
Replies 2 (2)

EBOOST
Shopify Partner
833 229 256

Hi @Appeltjesgroen ,

All the new themes haven't 'Snippets/site-nav.liquid' file.

They will used "snippets/header-dropdown-menu.liquid" and "snippets/header-mega-menu.liquid".

Replace "include" to "render"

EBOOST_0-1715290941196.png

If you still want to use code above. You can create "site-nav.liquid" file in the "Snippets" after that copy content from old theme to paste to new theme

EBOOST_1-1715291167680.png

 

 

Hope can help


If you find my reply helpful, please hit Like and Mark as Solution


https://www.eboosttech.net


EBOOST


DONATE ❤❤
Appeltjesgroen
Visitor
2 0 0

I have tried to implement it with your directions, but I did not get the correct outcome. Unfortunately I am no web developer so I have only basic web coding experience. But reading the code that I want to implement is easy to comprehend: use main-menu for normal customers or use main-menu-wholesale for accounts with tag wholesale.

 

The only problem is that the new header-dropdown-menu and header-mega-menu do not reference any link to this menu-handle. Therefore it is beyond my knowledge to find the correct place to implement this code.

 

Do you have any tips?