Hi, after updating Enfold, WPML plugin and WP to the latest versions the language menu item is not showing in my main menu,
I checked the settings and are correct.
How can I fix it?
Hi Jorge!
Thank you for using Enfold.
Did you set the Display the language switcher in the WP Menu to your Main Menu?
Regards,
Ismael
Hi Ismael, yes the option is marked.
Any other thing I must check?
Regards.
Hi!
Did you modify or add any snippets to modify the WPML language switcher? Please post the login details here and set it as a private reply. We would like to check it.
Regards,
Ismael
Hey!
Please try adding this on functions.php to remove the default theme language switcher:
add_action('after_setup_theme','avia_remove_main_menu_flags');
function avia_remove_main_menu_flags(){
remove_filter( 'wp_nav_menu_items', 'avia_append_lang_flags', 20, 2 );
remove_filter( 'avf_fallback_menu_items', 'avia_append_lang_flags', 20, 2 );
remove_action( 'avia_meta_header', 'avia_wpml_language_switch', 10);
}
Cheers!
Ismael
Hi!
Please add the code Ismael posted here: https://kriesi.at/support/topic/wpml-menu-item-not-showing/#post-321008 to the child theme (or enfold) functions,php file. Otherwise Enfold will add the theme language switcher to the menu and WPML will add the default language switcher to the menu too.
Cheers!
Peter
Thanks Dude. Now I get it.