Archived topic
Hide Primary menu with filter/action?
1 reply · Started by David Perez Garcia on October 28, 2021
Hello,
I've seen this ticket:
https://generatepress.com/forums/topic/how-to-hide-primary-menu/
but we would need to replace the functionality of the menu, so we have to remove the menu of GeneratePress with filter/action.
How could we do it?
Hi David,
You can disable the default menu on Appearance > Customize > Layout > Primary Navigation and set the Navigation Location dropdown to "No Navigation".
Once you've removed it, you can hook in your own menu using generate_inside_navigation to hook your own menu on the same place where the removed menu was.