PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Hide submenu if not logged in

s2Member Plugin. A Membership plugin for WordPress®.

Hide submenu if not logged in

Postby alargeau » September 23rd, 2011, 5:18 am

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!
User avatar
alargeau
Experienced User
Experienced User
 
Posts: 31
Joined: November 15, 2010

Re: Hide submenu if not logged in

Postby camillemm » September 23rd, 2011, 8:42 am

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.
User avatar
camillemm
Registered User
Registered User
 
Posts: 86
Joined: September 7, 2010

Re: Hide submenu if not logged in

Postby alargeau » September 24th, 2011, 5:22 am

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:
Image

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.).
User avatar
alargeau
Experienced User
Experienced User
 
Posts: 31
Joined: November 15, 2010

Re: Hide submenu if not logged in

Postby camillemm » September 24th, 2011, 7:45 am

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...
User avatar
camillemm
Registered User
Registered User
 
Posts: 86
Joined: September 7, 2010

Re: Hide submenu if not logged in

Postby RachelC » September 24th, 2011, 8:41 am

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...
User avatar
RachelC
Registered User
Registered User
 
Posts: 31
Joined: September 14, 2011

Re: Hide submenu if not logged in

Postby Cristián Lávaque » September 24th, 2011, 10:34 pm

^ What Rachel said. The new setting may help you with that. WP admin -> s2Member -> Restriction Options -> Alternative View -> Nav Menus
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron