Showing Main Menu Items to Certain Tagged Customers

Hey!

I am trying to show a Main Menu Item to certain customers who have a specific tag.

Is this possible?

Thanks!

Hello @SMoskal

This is indeed possible, you have to access your header.liquid file, add a conditional check to identify the menu item, then wrap the menu code as follows:

{% if customer.tags contains "your tag" %}
Add the code of the menu item here
{%endif%}

That should do it! Don’t forget to like & mark as a solution is this solves your issue :wink:

Hi, don’t know much about coding.

Can you show what a menu item code looks like?

I have a menu item I would like to hide, it is a top level menu item called ‘Practitioner’.

What would the code be?

thank you

Hi JHkCreate,

Would you be able to help me identify the code of the menu item, please?

I have created the menu in the navigation section, but I can’t find the actual code that needs to be put in the section.

Appreciate your reply.

Hi @MCee2

What theme are you using and what is the final objective you are targeting?

Let me know!

Hi JHKCreate,

Many thanks for your reply.

The theme I am using is “Upload me glamour” which I had bought form TemplateMonster.

The Final objective is to have a menu button “Staff” which only appears if the customer has a specific tag assigned to him.

Looking forward to your reply.