Re: How to hide an item from header menu when customer logs in

How to hide an item from header menu when customer logs in

kamistan
Tourist
4 0 1

Hello,

 

I am using the Impulse theme and I'm looking into ways of hiding the last item from my Main menu in the header of my page once a customer logs in.

 

Basically, the item in the navigation links to the registration page, but once the user is logged in, it is useless to have it as the user is registered. I think I should be using the {% if customer %} code, but I don't know where to put it so that it doesn't hide the whole navigation menu if the customer is not logged in.

 

Thank you,

Stan

Replies 4 (4)

Hank
Shopify Staff
1102 127 188

Hi @kamistan,


Hank here from Shopify. Really great question!

There would be a few different ways you could have this within your store,  I will list the options below for you to consider to see which one works for you!

 

  • The first would be through the likes of the coding change within your theme. As you mentioned you are using Impulse, this would be a third party theme. You will need to reach out to your theme developer to get them to make these changes for you as this would not be supported by Shopify. You can do so as per this guide but I will share their contact information with you here.

 

  •  Next, you could use the likes of the app Locksmith. This is a great app that you can give certain customers access to different sections of your website removing the need for coding. It has some great features, some of which include the likes of the below!
    18-37-fably-cquy4
  • Lastly, I will share a link to our Shopify Experts. These are developers that you can hire to do a wide range of customizations in your store. 


I hope this helps. Is there anything else you had in mind or thinking about regarding your store yourself?


All the best, Hank.

Hank | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

premiumapparell
Tourist
9 0 1

Using same theme and want to achieve same thing but backwards. If a customer is logged in they see the "Resources" menu link. It was two days ago you posted this, did you fix ha!?

 

Thanks!

SeanConnors
Tourist
28 0 1

Did you ever find a solution to this, I am trying to do the same thing. Thanks!

Andrew
Shopify Staff (Retired)
1746 173 322

The solution fundamentally lies with the developers of the Impulse theme. If you reach out to them directly, they should be able to answer your queries, as they are the best authority on their theme's functionality.

What kind of store are you building and why are you trying to achieve a similar effect?

To learn more visit the Shopify Help Center or the Community Blog.