Tagged: WPML flag
Hey glozemedia!
Thank you for visiting the support forum!
You can add this on functions.php if you want to remove the default theme flags and append the language switcher on the footer right after the widget columns:
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);
add_action('avia_after_footer_columns', 'avia_wpml_language_switch', 10);
}
Best regards,
Ismael