This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 1 voice.

Last updated by marcoA-32 8 months ago.

Author Posts
October 6, 2019 at 11:30 am #4702275


I am trying to: user uber menu as new menu

Link to a page where the issue can be seen: hidden link

I expected to see: only the flags in the menu

Instead, I got: double flags

October 6, 2019 at 1:00 pm #4702523


My issue is resolved now. Thank you!

This is how. Adding the following code which hides the Enfold Avia language switcher. If you have another way please feel to share your way with me 🙂

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);