Jump to content


Photo
- - - - -

Different Menu for Logged in Users


  • Please log in to reply
3 replies to this topic

#1 mrjarbenne

mrjarbenne

    Member

  • Members
  • 13 posts

Posted 02 February 2012 - 05:30 AM

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.

Please Login or Register to see this Hidden Content



#2 Jackey

Jackey

    Advocate

  • Members


  • 685 posts
  • LocationHelmond
  • Country: Country Flag

Posted 02 February 2012 - 07:59 AM

You can identify a user that is logged in by this CSS class: body.logged-in

#3 Jackey

Jackey

    Advocate

  • Members


  • 685 posts
  • LocationHelmond
  • Country: Country Flag

Posted 02 February 2012 - 08:36 AM

There is also a pseudo negation class, buy don't think that works for IE8 and older. body:not(.logged-in)

#4 Danny

Danny

    Is Awesome!

  • Moderators
  • 17660 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 03 February 2012 - 09:25 AM

Hi, I did some research for you and found this plug-in, I haven't tried it personally but its worth a try.

Please Login or Register to see this Hidden Content