Archived topic
Menu hidden on mobile but off canvas still work
7 replies · Started by David on October 3, 2022
Hello
How can I remove/hide the primary menu on mobile (white bar underneath header), but for it still to work show when called via the header block element that opens up the off canvas menu on mobile...
https://staging.howardandsons.co.uk/uk-sales/
Thanks
Dave
Hi Dave,
but for it still to work show when called via the header block element that opens up the off canvas menu on mobile…
Has this part been done?
Hi Leo,
No I haven't, please see image...
The menu below the header needs to be hidden, if I hide this via css, it stops the off canvas menu in the mobile header (next to the logo) from working.
Thanks
Dave
Try adding this in Appearance > Customize > Additional CSS:
@media (max-width: 768px) {
nav#site-navigation {
display: none;
}
}
That's great thanks, can you also help me center align the secondary menu items on this page, when viewing on mobile...
Try this CSS:
nav#secondary-navigation.toggled .main-nav > ul >li {
text-align: center !important;
}
Perfect, thank you :)
You are welcome!