Archived topic
How to hide primary menu?
9 replies · Started by Pietro on December 22, 2016
1) Hi, is there a way to hide the primary menu?
I tried many solutions, even some I've found on the old forum posts, but no one is working.
And...
2) Maybe I will show the menu on the footer area, just above the copyright section. How to do it? I've tried something you writed on this topic https://generatepress.com/forums/topic/future-addon-ideas/
but it has not worked.
Thanks
Hi there,
1. To hide it throughout your site, go to Customize > Layout > Primary Navigation and set the position to "Hide".
To hide it on specific pages, use the Disable Elements add-on: http://docs.generatepress.com/article/disable-elements-overview/
2. Currently not possible, but it's been requested quite a bit lately, so it will be a feature soon. For now, the simplest way would be adding your links into the Copyright section in Customize > Copyright:
<div class="footer-links">
<a href="URL HERE">My first link</a> | <a href="URL HERE">My second link</a>
</div>
Hope this helps :)
Perfect, thanks!
You're welcome :)
Hi Tome
I do not have the hide option in Customize > Layout > Primary Navigation...
(Yes, Disabke is activated)
Thanks
Hi Pascal, this is quite an old post - just select: No Navigation
Thanks David
You're welcome Pascal
Hi there!
I had the same issue... and was able to hide the menu doing what is recommended in this post, but ONLY IN THE DESKTOP VIEW. When I switch to Mobile view, the menu is still there no matter if I select "no navigation". Same for tablet view. What should I do to hide it on the mobile view?
Thank you!
Magali
Hi there,
Try this CSS:
@media (max-width: 768px) {
.main-navigation {
display: none;
}
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
If this doesn't work please open a new topic.
Thanks!