Switching to a different "upper menu" when user is logged in

Tourist
15 0 1

Hi,

we are trying to show a different upper menu if the user is logged in.

We were able to compactly hide the upper menu by adding this code to the head of the site :

 

{% if customer %}
<style>
.site-nav {display: none;}
</style>
{% endif %}

 

Any ideas on how to "manage" two different menus? if not, any ideas on hiding only some of the menu items?

 

0 Likes
Shopify Partner
1147 93 141

Hi,

@@Alon23

 

try this 

{% if customer %}
<style>
.site-nav {display: none;}

.site-nav-sec {display: block;}
</style>

{%else %}

<style>

.site-nav {display: block;}
.site-nav-sec {display: none;}
</style>

{% endif %}

Thanks & Regards
Perennial Solution

Problem Solved?✔️Like and Accept the solution that can help others.
Need any help with theme customization or design? Hire us
Email: infoperennialsolution@gmail.com
Skype: infoperennialsolution
0 Likes

Hello 

Please refer below url this will help you:
https://help.shopify.com/en/themes/customization/access/create-members-only-store

Want to modify or incorporate custom changes on store, Hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Free Review and advice for sale on store | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | SEO & Digital Marketing | Site Speed Optimization | Performance Site Audit
0 Likes
Tourist
15 0 1

Thanks for that but It didn't work. How do you define which of your "extra menus" are the ".site-nav-sec"?

We are using the Debut theme and there is no place to define "another upper menu". Am I missing something here?

0 Likes
Tourist
15 0 1

Thanks for that but It didn't work. How do you define which of your "extra menus" are the ".site-nav-sec"?

We are using the Debut theme and there is no place to define "another upper menu". Am I missing something here?

0 Likes