Tagged: enfold, language flags, wpml
Hi,
I configured WPML to display the language switcher at our menus.
What happened them is that I have the language switcher, working well, but I still have all the theme language flags fixed on my menus.
Reading some of your posts I notice that you have a turnaround solution for that. I applied that on my child theme functions.php, but nothing happens, the problem still remains. Please advise.
Content of my child theme functions.php
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);}
Hey Pedro,
Thanks for reaching out to us!
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
Login credentials include:
Best regards,
Jordan