Hi all
I have created a second menu that only appears if a customer has a tag of wholesale, the code i have used works fine on desktop menu but when i check the mobile menu it does not work. Im using the Dawn theme and code is below if anyone can point me in the right direction i would greatly appreciate it.
{% if customer.tags contains 'wholesale' %}
{% assign current_linklist = 'wholesale' %}
{% else %}
{% assign current_linklist = 'main-menu' %}
{% endif %}
{% for link in linklists[current_linklist].links %}
@GlenMaxilux
Welcome to the Shopify community!
Thanks for your good question.
Please share your store URL.
So that I will check and let you know the exact solution here.
@GlenMaxilux
I have Check your menu is work fine.
Hi @Zworthkey no it doesn’t sorry you wont see as you do not have a login but looking at the code where would i need to add this so that the mobile menu will work. I have added screen shots which show Wholesale in the desktop menu but not in the mobile.
Hey I had the same problem. The reason is because you only edited the code for desktop. You need to search within header.liquid for any other similar lines of code that appear in other places just like the one you edited for desktop. On my Dawn theme it looked like this:
{%- for link in section.settings.menu.links -%}
Let me know how it goes.
Hi
I am also looking for the same solution. I have created two different menus - Main Menu and Member Menu. I want to show Main Menu to non-logged in visitors and Member Menu to logged in customers. I am on the latest Dawn theme. How do I achieve this?