Site logo

Archived topic

mobile menu not on the same line

16 replies · Started by Ree on January 6, 2023

Viewing posts 1–15 of 17

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

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;
}

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

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.

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

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

i did that but nothing changed.

the element is in appearance > elements > my account

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

i created a new button but it is the same...

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.

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?

Try editing the right margin on the button now.

its working now, thanks!
what changed please?

This archived topic is closed to new replies.