Archived topic
Mobile Menu Breakpoint
3 replies · Started by Craig on March 19, 2019
Hello,
I used the following code to change the breakpoint. However, the dropdown menu is not full width. Is there a way to make the dropdown menu full width as it is on mobile?
@media (max-width: 768px) {
.main-navigation .menu-toggle,
.main-navigation .mobile-bar-items,
.sidebar-nav-mobile:not(#sticky-placeholder) {
display: block;
}
.main-navigation ul,
.gen-sidebar-nav {
display: none;
}
[class*="nav-float-"] .site-header .inside-header > * {
float: none;
clear: both;
}
}
Thanks for the help!
Hi there,
You are using the mobile header so this is actually the code you should be using:
https://gist.github.com/generatepress/282078076cd8631c17717d5b8640c043
However, this option has actually been added in the next version of GP Premium and the alpha is currently available. If this is still a development site then I'd highly recommend using the new option:
https://generatepress.com/gp-premium-1-8/
Let me know :)
Awesome, thanks Leo! When do you anticipate this new version to be production ready?
It depends on how the testing period goes – if all goes well, it should be released in a couple weeks 🙂