Shopify themes, liquid, logos, and UX
Is there a way to edit the main menu template so that only one of the tabs is hidden from untagged customers?
What ever user will see.
What only customer.tags users will see.
Solved! Go to the solution
This is an accepted solution.
yes you can do this something live this
{% if customer.tags contains 'wholesale' %}
{% assign current_linklist = 'wholesale' %}
{% else %}
{% assign current_linklist = 'main-menu' %}
{% endif %}
{% for link in linklists[current_linklist].links %}
// code to output your linklist
{% endfor %}
This is an accepted solution.
yes you can do this something live this
{% if customer.tags contains 'wholesale' %}
{% assign current_linklist = 'wholesale' %}
{% else %}
{% assign current_linklist = 'main-menu' %}
{% endif %}
{% for link in linklists[current_linklist].links %}
// code to output your linklist
{% endfor %}
hi @KetanKumar where do i add this code if using Dawn theme 2.0? it is exactly what i need i assume it goes in the header.liquid??
header menu code
its my pleasure to help us
Hi
I have a similar requirement. I want to hide one of the menu items from the main menu for non-logged in customers. Is there a way to do this?
The item I want to hide is Collections list
The year-end shopping spree is around the corner! Is your online store ready for the ...
By JasonH Nov 10, 2024We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024