Hello.
After updating ENFOLD suddenly there are flags next to my WPLM laguage selector. I cant seem to figure out how to remove them
Hey. Just figured it ot after reading your advice to another user.
I inserted the following into my child theme functions file:
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’);
Hi,
Glad that it’s all good now. Thanks for using Enfold :)
Best regards,
Nikko