Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #884751

    Dear,

    i installed the WPML to make more languages availeble on my site.

    but in my header it shows standard a language switcher right from the search icon, but this one is not chosen by me and i don’t want the flag on that position. The flag between “My Account” and the search icon is the correct on that i put there myself thanks to the plugin options.
    According to WPML this is part of the enfold theme and there should be a option to take it out but i can’t find it no where.

    Anybody know what i could do to remove this?

    Thanks in advance

    #885503

    Hey Nadlhy123,
    Try adding this code to the end of your functions.php file in Appearance > Editor:

    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,
    Mike

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.