Site logo

Archived topic

Customizer: mobile styles are overwritten by desktop styles

5 replies · Started by Inga on March 9, 2020

Viewing posts 1–6 of 6

Hi there,

I've set the width and height of the menu items in the customizer for desktop (30,40). Works. Then I changed width and height for mobile devices by clicking the small mobile icon in the customizer (20,60).
But this doesn't take effect on frontend. The styles for mobile (20,60) are there, but are overwritten by desktop styles (30,40):

.main-navigation .main-nav ul li a, 
.menu-toggle, 
.main-navigation .mobile-bar-items a {
    padding-left: 30px;
    padding-right: 30px;
    line-height: 40px;
}

overwrites


.main-navigation .main-nav ul li a {
    padding-left: 20px;
    padding-right: 20px;
    line-height: 60px;
}

Shouldn't there be any media query here?

Thanks

Hi there,

Any chance you can link us to the site in question?

You can edit the original topic and use the private URL field.

Let me know :)

PW ist gpsupport
URL is updated. Main navigation is the blue nav on top of the site. Many thanks!

Uhm yes, that's it... so the mobile menu breakpoint applies to other styles too, okay, obvious.
Thank you!

No problem :)

This archived topic is closed to new replies.