Selective Navigation Menus (5 posts)

  1. TaylorReints
    Posted 3 years ago #

    Website: http://pastafarian.host22.com/

    Hello. I am trying to create an alternative secondary navigation menu for when somebody logs in to my website.

    Right now, the menu says "Your Wall - Forum - Members - Private Messages - Write an Article". I would like this to be all of the options for when somebody is logged in. When people are logged out, I'd like the same menu to say something like, "Login - Register". How would I accomplish this?

  2. Jonathan Dingman
    Posted 3 years ago #

    pretty easy, just do something like...

    if ( user_is_logged_in ) { do second menu }

    Basically only showing the menu after they've logged in.

    should be simple enough to accomplish.

  3. TaylorReints
    Posted 3 years ago #

    Where do I put this code?

  4. Jonathan Dingman
    Posted 3 years ago #

    You'd put it in the header.php, wherever your navigation is.

  5. Andrew Nevins
    Forum moderator
    Posted 3 years ago #

    We can't specifically say where to look, as we don't have access to commercial themes. We don't know how they operate.
    Your theme's vendors do provide better support for your theme.

Topic Closed

This topic has been closed to new replies.

About this Topic