Hi,
I have a multilingual site with English and Polish languages. When i created the site the default language was English, now i changed the default language to Polish and i see the language switcher only in the Polish pages.
I didn’t add the language switcher in the enfold-child theme code, only configured the WPML to show it anywhere.
I want the language switcher to appear in the same row as the menu, menu in the left and language switcher in the right.
What am i doing wrong?
Hey modelity!
Thank you for using Enfold.
Add this to the functions.php to disable the default flag 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);
}
Go to the WPML > Languages panel. Enable the Display the language switcher in the WP Menu. Select your main or secondary menu then set the Language switcher style to Drop-down menu.
Regards,
Ismael
Thanks!