Dear support,
i want to remove the language flags in the main-menu. The following code did the trick but stopped working. now.
How can i hide the flags now?
//hide flags
function ava_remove_default_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','ava_remove_default_flags');
Hey dondela,
Thank you for your patience, have you tried disabling the language switcher at WPML ▸ Languages
Another option is to try this css:
#header_main #avia-menu .av-language-switch-item { display: none; }
Best regards,
Mike
Hey Mike,
the css did the trick, thank you so much for your help!
Great support, as always :-)
Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.
Best regards,
Mike