How to display a new Header Menu when customer with a specific tag logs in

How to display a new Header Menu when customer with a specific tag logs in

KR3
Excursionist
13 0 14

Hi there. I run a membership-type structure on my store. I am looking to have different header menu display when any customer with a specific tag (read3-user) logs in.   

 

I have been doing this successfully in Debut for four years but with the upgrade to Shopify 2.0 and Dawn theme I can't work out what code is needed... I am also unsure if it needs to go somewhere specific for mobile display as well as desktop display.

 

Ideally this alternate header menu would display regardless of what page template is selected.  I have mega menu selected on my site if that is relevant. 🙂

 

If anyone can help me I've be so grateful. 

 

 

 

Replies 7 (7)

Moeed
Shopify Partner
7541 2035 2501

Hey @KR3 

 

This type of work is possible but is pretty complex as well the same time and it will require some custom coding in your theme files at multiple places so if you're not familiar with coding then I would highly recommend you to hire a Shopify developer who can help you out with that in performing the task smoothly. Feel free to let me know if you want me to help you out and I would be more than happy to give you a helping hand.

 

Best Regards,

Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


rajweb
Shopify Partner
825 71 155

Hey @KR3 ,

To set up a different header menu for customers with the "read3-user" tag in the Dawn theme, you'll need to modify the theme's code to detect the customer tag and conditionally render the appropriate menu:

Follow These Steps:

1, Online Store 

2. Themes 

3. Edit Code

4. Create Alternate Menu Code:

-Open header.liquid (usually located under  Srctions).

-Locate the code that renders your header menu. In Dawn, it often uses navigation.liquid or another snippet to load the menu. 

5. Add Conditional Logic for Customer Tag:

 

 

-Insert a condition to check if the logged-in customer has the read3-user  tag.

-Here's an example of what the code might look like:

liquid:
 

 

{% if customer and customer.tags contains 'read3-user' %}
  <!-- Display alternate menu for 'read3-user' customers -->
  {% render 'alternate-menu' %}
{% else %}
  <!-- Default menu for other customers -->
  {% render 'main-menu' %}
{% endif %}

 

6. Create the Alternate Menu:

-If you don’t already have an alternate menu snippet (e.g., alternate-menu.liquid), create a new snippet with the desired menu structure.

7. Ensure Compatibility with Mobile and Mega Menus:

-Dawn handles mobile and desktop headers separately, so ensure that your condition covers both.

-Test on both mobile and desktop views to confirm the alternate menu displays as expected.

8. Test Across Templates:

Since you want this header to display universally, placing this in the header.liquid will apply it site-wide.

 

After implementing, check by logging in as a tagged customer on mobile and desktop to confirm the alternate menu appears correctly. Let me know if you’d like further customization on this setup!

 

If I was able to help you, please don't forget to Like and mark it as the Solution!
If you’re looking for expert help with customization or coding, I’d be delighted to support you. Please don’t hesitate to reach out via the email in my signature below—I’m here to help bring your vision to life!

Best Regard,
Rajat Sharma

 

 

 

 

Rajat | Shopify Expert Developer
Need a reliable Shopify developer for your next project?
Our App: Productify Groups App
Email: rajat.shopify@gmail.com
Portfolio: https://rajatweb.dev
KR3
Excursionist
13 0 14

Rajweb, thank you for this. I found a different solution yesterday. It required code to be added in all three Dawn menu styles so it may be a little different to yours. I will save your explanation to test if the one I have doesn't work for some reason.  Thanks again. 

rajweb
Shopify Partner
825 71 155

@KR3 ,

Great to hear that you found a solution! It sounds like the thread you came across provided some valuable insights for your issue. If you run into any more problems or need further assistance with your store, don’t hesitate to reach out again—I’m always happy to help! If you found my replies helpful, I’d really appreciate it if you could like them and mark them as the solution. Your support goes a long way in helping my profile—thank you!

Rajat | Shopify Expert Developer
Need a reliable Shopify developer for your next project?
Our App: Productify Groups App
Email: rajat.shopify@gmail.com
Portfolio: https://rajatweb.dev
Folkingtons
Tourist
4 0 1

Hi @KR3 Can you share how you did this, as I have been looking for ages and cannot find a solution that works! Thanks Gary

 

KR3
Excursionist
13 0 14

Hi Gary.

 

I'm using the DAWN Template. Here's what I did.
I must have found a YouTube or Post somewhere that helped me but haven't written it down!
Bear in mind, I'm a total DIYer 🙂

In the Snippet folder you will need to edit all three menus:
header-dropdown-menu.liquid,
header-mega-menu.liquid,
header-drawer.liquid.

 

In each file, find

{%- for link in section.settings.menu.links -%} 

Replace with

{% assign menu_handle = 'main-menu' %}
{% if customer %}
{% if customer.tags contains 'member' %}
{% assign menu_handle = 'main-menu-member' %}
{% endif %}
{% endif %}
{% for link in linklists[menu_handle].links %}

 (where 'member' is your custom tag and 'main-menu-member' is the name of the menu want to appear for that tag)

Make sure you create your custom menu (under Navigation) before you start this process.

 

Bear in mind, this just changes the menu that appears. It doesn't lock the content.

I use the Locksmith app on my website to control access to specific pages - it's absolutely brilliant and their customer service is outstanding. Been using them for five years without a hitch.

 

I hope this helps!  

 

WinifredGeorgi
Visitor
2 0 0

Hi there!

I completely understand the frustration of migrating from Debut to Dawn and losing custom functionality like tagged customer menus. I ran into this exact issue when upgrading to Shopify 2.0 and coding the Dawn theme’s header.liquid can be a headache—especially ensuring mobile/desktop compatibility and template consistency.

Instead of wrestling with the code, I now use Navvy. It’s a Shopify app that lets you automatically swap header menus based on customer tags (like "read3-user") without touching a single line of code. Here’s why it’s perfect for your setup:

 

  • Works seamlessly with Dawn and mega menus.

  • Displays the right menu on both desktop and mobile (no extra tweaking needed).

  • Applies to all pages/templates automatically.

  • No risk of breaking your theme during updates.

It saved me hours of trial and error. You can set it up in minutes here: https://apps.shopify.com/member-menu.

Feel free to ask if you need help—happy to share what works for me as well! 😊