Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1001799

    This is puzzling me. The menu items are identical in the small bar above the main menu and in the main menu itself. But those links are not part of the secondary menu according to Appearance > Menus.

    I only want a language switcher in the top bar: EN | FR lined up on the right side in line with the last main menu item.

    How can I do this?

    #1001800

    Just replying to get email notifications…

    #1001815

    Hi,

    Did you assign the main menu as the secondary menu as well maybe? Please send us a temporary admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #1001873
    This reply has been marked as private.
    #1001875

    I think I may have found the problem. I’m using this snippet to get a logged-in and logged-out menu. Then I later created a 3rd secondary menu for the language bar called “Lang”.

    function my_wp_nav_menu_args( $args = '' ) {
     
    if( is_user_logged_in() ) { 
        $args['menu'] = 'logged-in';
    } else { 
        $args['menu'] = 'logged-out';
    } 
        return $args;
    }
    add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' );

    How can I adjust it to tell this snippet to ignore the secondary menu Lang?

    #1001963

    Hi entrepreneur41,

    Here is a thread for you to consider
    https://premium.wpmudev.org/forums/topic/menu-issues-logged-in-logged-out-secondary-menu

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1002519

    that’s helpful thanks

    #1002574

    Hi,

    Thanks for the feedback. Please let us know if you should need any further help on the topic.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.