Hi, I wanted to know if and how I can change the flags to show text instead – http://screencast.com/t/nJBYv2v8zM0.
Thanks.
Hi DROR!
Please add following code to Functions.php file in Appearance > Editor
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);
}
Regards,
Yigit
Hi Yigit, will this code simply remove the flags? How can I change the flats to show a specific text instead or text along with the flag?
Hey!
use Yigit’s code and then configure the language switcher in the WPML language panel.
Regards,
Andy
Hi, not sure I follow. I don’t see any change when I add the code.
Hi!
After adding the code, please go to WPML then the Display the language switcher in the WP Menu. Select your main or secondary menu. On Language switcher style, choose the Drop-down menu.
If that does not help, please create a temporary admin login and post it here privately.
Regards,
Yigit
Hi Yigit, it worked but now I want to only show the language text without the flags. How can I remove them?
Sorry, it worked fine. Thanks :)