I have a problem with my menus, i have created two different menus lets call them women and kids. When i assign the menu kids to the kids page, the menu changes on all other pages like womens page. I want to use specific menu for each page. I have tried to look into the coding part but i cant find where i need to change the coding, closest i got to was it displayed both menus at the same time.
{% if customer.tags contains “wholesale” %} {% assign menu = ‘wholesale-menu’ %} {% else %} {% assign menu = ‘normal-menu’ %} {% endif %} {% for link in linklists[menu].links %} //code to output your menu items. {% endfor %}
maybe this code will work if i insert it into nav.liquid or header, but i need to change {% if customer.tags contains “wholesale” %} to something specific for the page
I tried your code but then on my website i can only see the text kids menu on top not showing the actual menu. I tried this, i think you missed a part of code where it says assign, but this didnt have any effect on the site
Thank you, I have been looking for this for ages, and looks like no one else knows how this should be done. Can I ask, If my “Pages” that need different menu are actually Categories and also Product - pages, instead of page.handle should I write category.handle and product.handle?
This code is perfect, but where should it be placed once I add it to the code, it shows double menus, the original one in place and this code to the upper left vertically