Tagged: ,

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #863035

    Hello, how I can remove WPML flags from mobile menu?
    https://ambcons.com/en

    I want languages displayed only as LV RU EN without flags
    Screenshot – https://prnt.sc/gw8gqh

    Thank you very much!

    #863057

    Hey vadikcoma,

    Add the following to quick css:

    @media only screen and (max-width: 767px)  {
    .language_flag{
    display:none!important;
    }}

    Best regards,
    Jordan Shannon

    #863069

    Thanks Jordan,

    Flags are gone, but lines are still there :-)

    https://prnt.sc/gw99n0

    #863749

    Hi,

    Thanks for the feedback, please try this instead:

    @media only screen and (max-width: 767px)  {
    .language_flag {
       display:none!important;
    }
    .language_flag < a {
       border:none!important;
    }
    }

    Best regards,
    Rikard

    #863893

    Hi Rikard, I’m still getting lines on mobile menu. You can see here – https://ambcons.com/

    #864093

    Hi,

    Adjust the css to the following:

    @media only screen and (max-width: 767px)  {
    #av-burger-menu-ul .av-active-burger-items:nth-child(6) {
    display:none;
    }
    
    #av-burger-menu-ul .av-active-burger-items:nth-child(7) {
    display:none;
    }
    
    #av-burger-menu-ul .av-active-burger-items:nth-child(8) {
    display:none;
    }
    }

    Best regards,
    Jordan Shannon

    #864158

    Hi Jordan, now there is an visual “effect” to flags :-)

    #864160

    Hi,

    This should be added in addition to the css I gave earlier. Sorry for being unclear. That should fix that effect.

    Best regards,
    Jordan Shannon

    #864161

    Thanks Jordan,

    currently flags are gone, but lines are still disappearing with same effect – https://ambcons.com/

    #864167

    Hi,

    Hmmm, I’m guessing it’s because the menu doesn’t load the css until the menu is open. Try the css below (keep the flag css as well)

    
    @media only screen and (max-width: 767px)  {
    #av-burger-menu-ul li:nth-child(6) {
    display:none;
    }
    
    #av-burger-menu-ul li:nth-child(7) {
    display:none;
    }
    
    #av-burger-menu-ul li:nth-child(8) {
    display:none;
    }
    }

    Best regards,
    Jordan Shannon

    #864319

    yes, now it seems to work!

    Thank you!

    #864322

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    Best regards,
    Mike

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