Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #779596

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

    #779597

    Sorry – here’s the site –

    http://westbankcorp.com/

    #780490

    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

    #780726

    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?

    #780732

    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

    #780751

    thanks again!

    #781155

    Hi,

    You are welcome!
    Let us know if you have any other questions or issues and enjoy your weekend! :)

    Best regards,
    Yigit

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Replace WPML flags with text’ is closed to new replies.