Dawn Theme - Hide Menu and Account Icon Unless Signed In

Topic summary

Need to hide the site menu and account icon unless a visitor is logged in as a customer with the “wholesale” tag, effectively limiting non-logged-in users to the home page.

Support requested access to review; the store password was shared privately in-thread.

Solution provided:

  • Navigate to Online Store > Edit Code > theme.liquid.

  • Insert a Liquid conditional near the end of the file (above ) to control visibility based on the customer tag:
    {% if customer.tags contains ‘wholesale’ %}

    {% else %}

    {% endif %}

  • This conditional is used to show navigation/account elements for tagged customers and hide them for others. A screenshot was shared to illustrate the result. (Code snippet is central.)

Outcome: The requester confirmed the solution worked and expressed thanks. No additional changes or issues were raised.

Status: Resolved; no outstanding questions.

Summarized with AI on January 9. AI used: gpt-5.

HI

I’m creating a very basic wholesale website which doesn’t justify the expenditure of an app as there is only one product.

I need to hide the menu and the account icon unless the user is signed in as a customer, and has a tag "wholesale’

Is anyone able to help me with this please - basically I just want them to be able to see the home page unless they are logged in.

The store is www.himalayandogchewsaustralia.com.au - it is password protected

Thank you for any guidance

Hey @BonzaDogTreats

Can you share your store password so I can provide you a solution?

Best Regards,

Moeed

sure, it’s ahrawx

Hey @BonzaDogTreats

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag

{% if customer.tags contains 'wholesale' %}

{% else %}

{% endif %}

RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

1 Like

Perfect, thank you :slightly_smiling_face:

Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.