Page 1 of 1
Hide submenu if not logged in
Posted:
September 23rd, 2011, 5:18 am
by alargeau
Hello everyone,
I've been searching for a way to hide the submenu for people who are not logged in. I have a sort of members' area which is accessed by the top menu. Once you go to that page, which is a parent page to all other pages dedicated to members only, you can login. But, people who are not logged in can see the submenu, so they can see the name of the pages, which is not very good. I don't want people who are logged in to see the submenu.
But the thing is that I have absolutely no idea how to hide it.
So, thanks a lot for your help!
Re: Hide submenu if not logged in
Posted:
September 23rd, 2011, 8:42 am
by camillemm
Search in the forum: there are explanations about menu viewing and members. You just have to create two menus: one for the members and one for the visitors and call them when necessary.
Re: Hide submenu if not logged in
Posted:
September 24th, 2011, 5:22 am
by alargeau
It seems you're talking about the navigation menu. I'm talking about the submenu, which cannot seem to be created under the Menu tab on WordPress.
The submenu shows automatically if you have subpages:
As you can see on the pic, "Votre Espace" is the members' area. I'm not logged in but I can still see the submenu ("Mon compte", "Jeu concours", etc.).
Re: Hide submenu if not logged in
Posted:
September 24th, 2011, 7:45 am
by camillemm
Well, it's not coming from nowhere. If it's created by your theme you have to build another, if it's managed by WP, samething.
En français: il faut refaire un menu avec tous les éléments vos sous-menus et appeler l'un ou l'autre menu suivant la connexion. Ou gérer juste les sous-menus. You have to study how this menu is created...
Re: Hide submenu if not logged in
Posted:
September 24th, 2011, 8:41 am
by RachelC
v 110915
s2Member >> Restriction Options >> Alternate View Restrictions
Is Nav Menu checked off?
I had the opposite problem. my nav bar (restricted categories) disappeared when not logged in.
Unchecked Nav Menu and it worked... maybe you need the reverse... just a thought...
Re: Hide submenu if not logged in
Posted:
September 24th, 2011, 10:34 pm
by Cristián Lávaque
^ What Rachel said. The new setting may help you with that. WP admin -> s2Member -> Restriction Options -> Alternative View -> Nav Menus