Tagged: language switch
Hi, with my Enfold Theme I first tested Polylang, but then I switched to WPML. I deleted the Polylang Plugin.
After a test with language switches in WPML I suddenly saw 2 different language switches.Then I deactivated the WPML language switches, but there was no possibility to deactivate the remaining switches.
After consulting WPML support, they analized the problem and asked me to contact Enfold support.
How can I delete the remaining language switches. They do not work properly and they are in the wrong place.
Best Regards
Burghard Engel
Hey Burghard!
Thank you for using Enfold.
Can you please provide a screenshot of the issue? If you want to disable the theme’s default language switcher, add this to the functions.php file:
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 WPML panel then enable the Display the language switcher in the WP Menu. Select your main or secondary menu. On Language switcher style, choose the Drop-down menu.
Regards,
Ismael