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

    Hi, I just updated to enfold 4.1.

    Before I had the issue described here:
    https://kriesi.at/support/topic/remove-wpml-flags-from-mobile-menu/

    In the and we endet up with this custom css:

    #top #avia-menu .av-language-switch-item{ display: none; } 
    .av-main-nav .wpml-ls-menu-item ul {width: 50px;}
    
    li.av-language-switch-item {
        display: none !important;
    }

    any solution to remove the flags from the new mobile menu?

    #819291

    Hey lewy9,

    I added following code to Fuctions.php file and removed flags from mobile menu

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

    Please review your website :)

    Best regards,
    Yigit

    #819819

    Thanks Yigit, that helped, but it looks like my old CSS for a custom break point is messing things up.
    http://www.itsgreektomemn.com/aboutus/

    Had this code to set up a custom breakpoint to the Burger Menu/Toggle of 1250px and now it hides the toggle as it must be tied into the nav.main_menu wrapper instead of the #advanced_menu_toggle

    @media only screen and (max-width: 1250px) {
    nav.main_menu {display:none !important;}
    #advanced_menu_toggle, #advanced_menu_hide {display:block !important;}
    }

    I also noticed that the Burger Menu when clicked is stuck in the Full Screen setting regardless on what I change it to and I can not X out of it.

    #820024

    Hi,

    Please add following code to Quick CSS instead

    @media only screen and (max-width: 1250px) {
    .av-burger-menu-main { display: block!important; }
    #top .av_mobile_menu_tablet .av-main-nav .menu-item {
        display: none!important;
    }}

    and flush cache :)

    Best regards,
    Yigit

    #821067
    This reply has been marked as private.
    #821158

    Hi,

    Selectors has not changed in Enfold 4.1.1 and code is still working fine on my end.
    I may have misunderstood you. Could you please elaborate?

    Best regards,
    Yigit

    #822370
    This reply has been marked as private.
    #822521

    Hi,

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

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

    However, i cannot see the flags in menus at the moment. Have you figured it out already?

    Best regards,
    Yigit

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