Conditional menu for registerd users/guests

Community Forums Forums Design Tips and Tricks Conditional menu for registerd users/guests

This topic is: not resolved

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  pmcall 1 year, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1116

    the2003s
    Participant

    I’m running Genesis Framework on WordPress and I have to display a different top menu for logged in users and a different one for unregistered users (guests).

    I created the 2 menus in the WP backend > Appearance > Menus:

    top-menu1 for guests
    top-menu2 for registered users

    Normally I’d have to just use this:

    if( !is_user_logged_in() ){
    wp_nav_menu( array( 'primary' => 'top-menu1' ) );
    } else {
    wp_nav_menu( array( 'primary' => 'top-menu2' ) );
    }

    Since this is Genesis though, I’d like you to point me to:

    what’s the equivalent of the wp_nav_menu function?
    how do I register the 2 menus?
    what files do I have to modify?

    Thanks!

    • This topic was modified 1 year, 11 months ago by  the2003s.
    • This topic was modified 1 year, 11 months ago by  the2003s.
    #1920

    pmcall
    Participant

    I would love to have an answer to this also. Bump …

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.