Archived topic
secondary menu as buttons on mobile?
7 replies · Started by sparkle on February 21, 2023
hi, i found this article that i thought would get me what i wanted, but no joy. we have a secondary menu on our site that when reduced to tablet and mobile version i do not want it to 'hamburger' at all. i want the sparkly nav to always appear and to make the buttons smaller and clumped like a tag cloud.
https://docs.generatepress.com/article/disable-secondary-navigation-mobile-menu/
Hi there,
we have a secondary menu on our site that when reduced to tablet and mobile version i do not want it to ‘hamburger’ at all.
That is exactly what the documentation is for. Can you implement it first?
I don't see the secondary navigation on your site currently as well.
yes, the code is implemented on the site already.
the secondary nav is on the main page under the hero and on every shop page under the primary navigation.
And it's working?
https://www.screencast.com/t/KUolfc6rPMc2
Not sure how you can fit that many buttons in a small mobile screen - it certainly isn't very mobile-friendly.
oh. great! but it still doesn't work on the home page.
oh. great! but it still doesn’t work on the home page.
There's this CSS on homepage which hides the secondary navigation:
body #secondary-navigation {
display: none;
}
If you disable it, you should see the secondary nav on homepage.
hm. it's already there. if i unhide that, it will be on the home page twice and not where we want it.
The home page buttons is using Elementor - the code in our documentation only works with GP's secondary navigation.