Site logo

[Resolved] mobile menu not on the same line

Home Forums Support [Resolved] mobile menu not on the same line

Home Forums Support mobile menu not on the same line

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #2485589
    Ree

    I have two menus (country dropdown) and WPML menu but how can I adjust them to be on the same line? because its now dropping to line 2 and 3, and the icons beside squeezed together

    https://prnt.sc/NCALTHnkvpQd

    #2485607
    Fernando
    Customer Support

    Hi Ree,

    Can you try adding this CSS through Appearance > Customize > Additional CSS:

    #mobile-header nav#secondary-navigation .main-nav > ul {
        display: flex !important;
        flex-direction:row;
        flex-wrap:nowrap;
    }
    
    #mobile-header nav#secondary-navigation .main-nav > ul > li a {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    #mobile-header nav#secondary-navigation .main-nav > ul > li a img{
        height: 17px;
    }
    #2485614
    Ree

    I’ve added it has became 2 lines now. can I squeeze into one? There are some empty spacing between elements.

    #2485727
    David
    Staff
    Customer Support

    Hi there,

    in Customizer > Layout > Secondary Navigation, you can reduce the Menu Item Width, this will reduce the padding either side of those menu items.

    #2492523
    Ree

    thank you, I now have this issue where the icon added in block has too much margin on the right. How can I reduce it please?

    I’ve circled the elements in red for your convenience

    #2492810
    David
    Staff
    Customer Support

    Thats a GenerateBlocks button block, if you edit it, you can change the Right Margin in its Spacing settings.

    #2493759
    Ree

    i did that but nothing changed.

    #2493771
    Fernando
    Customer Support

    Can you provide admin login credentials so we can take a closer look?

    Please use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information

    #2493817
    Ree

    the element is in appearance > elements > my account

    #2493845
    Fernando
    Customer Support

    That’s odd. Can you try recreating that specific button to test?

    #2493892
    Ree

    i created a new button but it is the same…

    #2493912
    Fernando
    Customer Support

    Can you try either of these in GenerateBlocks > Settings?:

    a) Choose Inline Embedding for the CSS Print Method in Settings > GenerateBlocks.
    b) Regenerate your CSS files in Settings > GenerateBlocks.

    #2493939
    Ree

    i did a check, css print method was previously set as inline embedding. I also regenerated CSS files but did you see any changes on the frontend?

    #2494066
    David
    Staff
    Customer Support

    Try editing the right margin on the button now.

    #2494118
    Ree

    its working now, thanks!
    what changed please?

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