Hey!
1) Insert this code into your child theme functions.php file to deactivate the default theme flags/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);
}
2) Then go to WPML > Languages and tick the “Display the language switcher in the WP Menu” option. You can also configure the language switcher type (dropdown, list, etc.) on this option page.
Regards,
Peter
Wonderful !!! Thanks a lot !! It works perfectly now !
Hi!
Great :)
Cheers!
Peter