Tagged: wpml
Hello,
I am going to buy WPML for my site, and I wonder how to place the option “ENGLISH | SPANISH” with text instead of flags in the top bar or top menu, I mean: text instead of a flag dropdown menu
thnak you!!
Hey!
You can change that in WPML Language switcher options – http://screencast.com/t/0twaUjGwV
Regards,
Josue
Hi!
Thank you for the info.
Please add this on functions.php to remove the theme’s default flag configuration:
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);
}
Make sure that you set the main menu on WPML > Display the language switcher in the WP Menu setting.
Regards,
Ismael
Hi,
Can you please create us a WordPress administrator account? post it here as a private reply.
Regards,
Josue
Hey!
Please review your site, i added Ismael’s code to theme functions.php to remove the flags at top.
Regards,
Josue