I’ve added the WPML Language plugin in my WordPress website. For example see http://goo.gl/fT8SeY. I would like to display the language switcher as a dropdown. Can you help me?
Hey Roy136!
Please refer to this post – https://kriesi.at/support/topic/wpml-12/#post-374726
Cheers!
Yigit
Thanks for your replay. Unfortunately, this is not a solution for me.
I want a select dropdown instead of flags.
Hi!
Do you mind creating a temporary admin login and posting it here privately so we can look into it?
Cheers!
Yigit
See private content for login details.
Hey!
check out these links:
https://wpml.org/documentation/getting-started-guide/language-setup/styling-the-drop-down-language-switcher/
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/
Would be best to ask WPML about it, as they know their plugin best.
Best regards,
Andy
I’ve asked them, but according to them I must be with you.
So please help me.
Hey!
You have to add this code in the functions.php file to disable the theme’s flag configuration:
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 panel then enable the language switcher. Configure the options.
Regards,
Ismael