Jump to content
Sign in to follow this  
mrjarbenne

Different Menu for Logged in Users

Recommended Posts

mrjarbenne    1
mrjarbenne

I'm having difficulty figuring out where I can put this code snippet so that when users are logged in they see a different menu. Given the complexity of Pagelines, I can't seem to find the appropriate space. I do have the pagelines customization plugin enabled if there is a function I can throw in there that will do it. Basically I have one more item on the Primary Menu I want to display to users that are logged in. http://wpsnipp.com/index.php/theme/display-different-menus-for-logged-in-users/

Share this post


Link to post
Share on other sites
Jackey    29
Jackey
You can identify a user that is logged in by this CSS class: body.logged-in

Share this post


Link to post
Share on other sites
Jackey    29
Jackey
There is also a pseudo negation class, buy don't think that works for IE8 and older. body:not(.logged-in)

Share this post


Link to post
Share on other sites
Danny    1,327
Danny
Hi, I did some research for you and found this plug-in, I haven't tried it personally but its worth a try. http://wordpress.org/extend/plugins/wp-custom-menu-filter-plugin/

Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×