Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #791052

    Hey,

    I would like to remove the flags from the mobile menu on my website. I tried it with this quick css I’ve found in another support topic but it didn’t worked for me.

    https://kriesi.at/support/topic/wpml-remove-flags-from-mobile-version/

    ul.avia_wpml_language_switch {display: none!important;}

    any other solution?

    Thanks in advance

    #791086

    Hey lewy9,

    Please try the following in Quick CSS under Enfold->General Styling:

    @media only screen and (max-width: 767px) {
    #header .wpml-ls-menu-item {
      display:none !important;
    }
    }

    Best regards,
    Rikard

    #791107

    Tried it and it still shows all the flags.

    #791116

    Hi,

    Please add following code to 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,
    Yigit

    #791143

    Doesn’t work at all unfortunately :(

    #791151

    Hi,

    Login credentials are not working for me. Can you please check them once again? :)

    Best regards,
    Yigit

    #791156

    Here:

    #791164

    Hi,

    I added following code to bottom of Quick CSS field in Enfold theme options > General Styling on all languages

    li.av-language-switch-item {
        display: none !important;
    }

    Please flush browser cache a few times and review your website

    Best regards,
    Yigit

    #791170

    Perfect! It is working now. Thanks a lot for your effort!

    Have a great day.
    Cheers

    #791171

    Hi,

    You are welcome! :)

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

    Best regards,
    Yigit

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Remove wpml flags from mobile menu’ is closed to new replies.