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?
Just replying to get email notifications…
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
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?
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
that’s helpful thanks