Archived topic
show secondary menu only in blog and post page
3 replies · Started by Silvano on August 17, 2018
Hi
I created a categories menu using the secondary menu positioned in the center bellow header. I need that menu appears only in the blog page and the post page. Can you help me with this? Exist some filter wich I can use?
Hi there,
Our new Layout Element module is actually perfect for this:
https://docs.generatepress.com/article/layout-element-overview/
So you want to choose the secondary navigation here:
https://docs.generatepress.com/article/layout-element-overview/#disable-element
Then choose the display rule to achieve what you want:
https://docs.generatepress.com/article/layout-element-overview/#display-rules
Let me know if this helps :)
Hi Leo,
yes, it is exactly what a need.
I think I need to pay more attention at the documentation :)
Thanks a lot!
No problem :)