Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #255864

    Hi,

    I am unable to remove the language switchers in the header.

    Initially, I thought they were due to WPML. However, WPML support has told me that this is an enfold function.
    I was able to remove them by inserting “#top .sub_menu>ul, #top .sub_menu>ul>li {
    display: none;}” into quick css. However, this is just a temporary solution and I would like to remove those flags instantly. Can you tell me which file to edit and which string to remove?

    Thank you!

    #255950

    Hey Maxim_HH!

    Please add this code to your child theme functions.php file:

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

    If you’re not using a child theme place it into enfold/functions.php

    Regards,
    Peter

    #473719

    Dear Support,

    I want to use the WMPL (Flag+text) and skip Enfold (Flag) on the 2nd menu. Please advise.

    Thank you
    MD

    #473726

    Hi!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    .avia_wpml_language_switch_extra {
      display: none;
    }

    Cheers!
    Yigit

    #473778

    Thank you, Yigit.

    It’s work.

    #473780

    Hi!

    You are welcome, we are always happy to help :)
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Remove Language Switcher Flags in Header’ is closed to new replies.