Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #537308

    Hi, I wanted to know if and how I can change the flags to show text instead – http://screencast.com/t/nJBYv2v8zM0.

    Thanks.

    #537310

    Hi DROR!

    Please add following code to Functions.php file in Appearance > Editor

    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);
    }

    Regards,
    Yigit

    #537330

    Hi Yigit, will this code simply remove the flags? How can I change the flats to show a specific text instead or text along with the flag?

    #538983

    Hey!

    use Yigit’s code and then configure the language switcher in the WPML language panel.

    Regards,
    Andy

    #539022

    Hi, not sure I follow. I don’t see any change when I add the code.

    #540647

    Hi!

    After adding the code, please go to WPML then the Display the language switcher in the WP Menu. Select your main or secondary menu. On Language switcher style, choose the Drop-down menu.

    If that does not help, please create a temporary admin login and post it here privately.

    Regards,
    Yigit

    #540661

    Hi Yigit, it worked but now I want to only show the language text without the flags. How can I remove them?

    #540662

    Sorry, it worked fine. Thanks :)

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘How to control the language flags?’ is closed to new replies.