Tagged: wpml
I followed this topic
https://kriesi.at/support/topic/how-to-remove-wpml-flags-from-top-bar/
but im not able to remove the flags…. unfortunately the look very ugly
http://www.viramedia.de/portfolio
Any way to disable it?
Thanks
Hey Viramedia!
Could you please try this: https://kriesi.at/support/topic/remove-wpml-flags-in-the-header/#post-423874
Best regards,
Rikard
I would prefer something in the Cuick CSS… changing php files will always be a problem with the next update
Hi!
You can use this:
.avia_wpml_language_switch li .language_flag {
display: none;
}
Or this:
li.av-language-switch-item {
display: none;
}
Cheers!
Ismael
Looks like the add_filter priorities have been changed in Enfold 3.0, try this:
function avia_remove_main_menu_flags(){
remove_filter( ‘wp_nav_menu_items’, ‘avia_append_lang_flags’, 9998, 2 );
remove_filter( ‘avf_fallback_menu_items’, ‘avia_append_lang_flags’, 9998, 2 );
remove_action( ‘avia_meta_header’, ‘avia_wpml_language_switch’, 10);
}
add_action(‘after_setup_theme’,’avia_remove_main_menu_flags’);