-
AuthorPosts
-
August 26, 2018 at 3:16 am #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?
August 26, 2018 at 3:17 am #1001800Just replying to get email notifications…
August 26, 2018 at 7:45 am #1001815Hi,
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,
RikardAugust 26, 2018 at 2:14 pm #1001873This reply has been marked as private.August 26, 2018 at 2:17 pm #1001875I 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?
August 26, 2018 at 7:40 pm #1001963Hi entrepreneur41,
Here is a thread for you to consider
https://premium.wpmudev.org/forums/topic/menu-issues-logged-in-logged-out-secondary-menuIf you need further assistance please let us know.
Best regards,
VictoriaAugust 28, 2018 at 4:25 am #1002519that’s helpful thanks
August 28, 2018 at 7:06 am #1002574 -
AuthorPosts
- You must be logged in to reply to this topic.
