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

New Member
1 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

1 Like
Highlighted
Shopify Staff
Shopify Staff
188 28 30

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

0 Likes
Highlighted
Tourist
7 0 0

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!

0 Likes