Archived topic
Custom Menu items, Primary/Secondary menu, Hook, Elements
3 replies · Started by Jonas on June 3, 2019
I have big problems to understand how I can add a menu to a Post type, I got a post type that I want to add a custom menu with links to sections on that page.
I had hoped that I could do use the secondary navigation and a Element hook to add a display rule to the post type but I just don't get it,
Could someone point me in the right direction please,
Hi there,
So you are wanting to use the secondary navigation only on that certain post type?
If so, you can disable it using Layout Element:
https://docs.generatepress.com/article/layout-element-overview/#disable-element
Choose Entire site for location and the certain post type under exclusion:
https://docs.generatepress.com/article/layout-element-overview/#display-rules
Let me know if this helps :)
Hi Leo,
A big thanks for that, just what I was asking for and didn't understand. I can now work it out even if it is going to be a sort of workaround of my problem.
Thanks,
No problem :)