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

    Hello,
    Could you advice me CSS code to make the burger menu items the following:
    1. Instead of 1 column 3 rows => 3 columns 1 row *I managed to achieve this in Dev Console.
    2. Set the columns width to fit nicely. *need your help.

    Current:
    https://www.dropbox.com/s/01pgx3rs68fd3gk/Screenshot%202018-04-23%2023.08.50.png?dl=0

    Expected:
    Column items are located closely nicely to each other, currently there is is huge gap / padding between them.

    Thanks!
    Kirill

    #947006

    Hey kirillko,

    Thank you for using Enfold.

    The following css code should center align the language switcher.

    .html_av-overlay-full #top #header #av-burger-menu-ul > li.wpml-ls-item {
        width: 50px;
        display: block;
        left: 50% !important;
        position: absolute !important;
        float: none;
        -webkit-transform: translate3d(-50%,0,0);
        transform: translate3d(-50%,0,0);
        top: 90px !important;
    }
    
    .html_av-overlay-full #top #header #av-burger-menu-ul > li.wpml-ls-item > * {
        display: table-cell;
    }
    
    .html_av-overlay-full #top #header #av-burger-menu-ul > li.wpml-ls-item > .sub-menu {
        width: 100px;
    }
    
    .html_av-overlay-full #top #header #av-burger-menu-ul > li.wpml-ls-item > .sub-menu li {
        display: table-cell;
    }

    You may need to add css media queries to adjust these values for smaller screens.

    Best regards,
    Ismael

    #1073123

    This is exactly I’m looking for. What changes did you make except css?

    #1073498

    Hi,

    This is OP’s site.

    weloveit dot ee
    

    Looking at the site should give you ideas about the site’s theme config.

    Best regards,
    Ismael

    #1317329

    Dear Ismael,
    i tried your code. I have 2 languages active. With your code above the menu (DE and EN) are now overlapping each other. Would be great you have a look. I would like to have DE and EN in the burger menu horizontal, next to each other.
    Thanks!

    #1317603

    Hi,

    Thank you for following up.

    Try to use this css code to separate the language switchers, or to create space between them.

    .html_av-overlay-full #top #header #av-burger-menu-ul > .wpml-ls-item.wpml-ls-item-de {
        margin-left: -20px;
    }
    
    .html_av-overlay-full #top #header #av-burger-menu-ul > .wpml-ls-item.wpml-ls-item-en {
        margin-left: 20px;
    }

    Please create another thread if you require more assistance. We will close this thread for now.

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘WPML Language switcher horizontal in burger menu.’ is closed to new replies.