Hide Top Menu from Visitors
This is driving me nuts. How do you hide the top menu bar from visitors? I cannot believe there is not a simple permissions setting for this.
-
- · PavelS
- ·
Hello @Brand Harbor Go to Studio-Navigation-Site navigation-Visible For .... changes what you need
-
Already tried that. It still shows the search icon, the menu icon and the site icon. I want to hide the entire top menu block from Visitors who are not logged in. So, the system recognizes them as unauthenticated. There is no setting I can find anywhere - Artificer, Designer, Setting, Developer ...
-
If you hide the entire top block where the menu is, I think it will look terrible. Are you using Artificer? A better option is to hide the menu items(icons), which you can do in the navigation, just find the right section.
Or go to---Designer--settings--Default page type for visitors ---- or you can also use the Splash page and customize it to your liking.
-
-
·
LeonidS
- ·
Hello @Brand Harbor !
Dear @PavelS provided the ways in right direction (thnx again, mate!), but you may apply the following CSS trick (Custom Styles area of your UNA template):
.bx-user-unauthorized .bx-toolbar-content { display: none; }It will hide the entire toolbar part for the guest.
-
·
LeonidS
-
Thank you. All that was done as well. It still shows the previous icons I mentioned. We even tried Designer Without Heading/Footer. Made no change. In earlier versions of UNA CMS it would.
-
Tried that as well yesterday, even cleared cache. Put into Artificer and nothing changed.
-
Ok @Brand Harbor , try it like this, non-logged in users won't see the bar, but after logging in you'll have it there for navigation... Is that what you meant?
Artificer--Styles--Custom Styles
body.bx-user-unauthorized nav.bx-def-z-index-nav.fixed { display: none !important; } -
-
·
LeonidS
-
·
In reply to PavelS
- ·
Nice way, @PavelS !
But the variant
.bx-user-unauthorized .bx-def-z-index-nav { display: none; }works too, I've checked :-) So dear @Brand Harbor , you may check now.
-
·
LeonidS
-
- · Gabe
- ·
Are you working in UNA 15 or 14? What do you mean when you say
So, the system recognizes them as unauthenticated.
Do you hope to give users feedback as to whether they system recognizes them as unauthenticated?
That's what I want for my users. I show the side menu to authenticated users. It is populated with lots of options. Top menu is visible to everyone, but has bare minimum options (search, and an events page for publicly announced events).
This doesn't answer your question, but it is a different approach to achieve a design distinction between authenticated and unauthenticated (beyond the avatar in the upper right).
-
UNA 14. If they are not signed in we do not want to show the top menu bar. It looks like Leonid and Pavel gave the correct code to hide the menu items
-
Thank you
-
Thank you