Hi,
i dont know how to delete the second language switcher section in the header?
Please help.
Hey OSD,
You need to disable the plugin of the language and that would remove it.
Best regards,
Basilis
Hey Basilis,
i did disable the wpml multilingual cms plugin and reactivated it. No changes :(
I also did include in functions.php (like i find in other posts) (by the way this code did work at our second website) :
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);
}
Hi,
I do not see a selector now, but only the flags.
Managed to fix it out?
Best regards,
Basilis
i fixed it by putting following code to functions.php
//bugfix mit 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’, 9998, 2 );
remove_filter( ‘avf_fallback_menu_items’, ‘avia_append_lang_flags’, 9998, 2 );
remove_action( ‘avia_meta_header’, ‘avia_wpml_language_switch’, 10);
}
Hi OSD,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria