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.
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.