Hello
My client would like an appended menu element just like the one on this site for translation from English to Chinese –
ie –
EN | 中文
I’ve looked around at various posts but it’s not that straightforward. I’m thinking that perhaps making a custom widget with styled divs and classes for the text links, then appending it to the secondary menu (that’s where I need it to go, far right) makes the most sense? My working site is in the private area. Please advise. Thanks so much :)
Sorry – here’s the site –
Hi,
Please add following code to Functions.php file in Appearance > Editor to remove flags
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');
Best regards,
Yigit
Hi Yigit
Thanks but how do I implement adding in the EN | 中文 appended to the secondary menu? I assume I’ll need some JS for that as well?
Hi!
IF you check the settings of WPML, they do have that there
Let me know if we can do anything else.
Best regards,
Basilis
thanks again!