Archived topic
Remove Duplicate Names on Secondary navigation menu headers
10 replies · Started by Amos on June 22, 2022
Hello Support,
On my site, I have created a secondary navigation menu with various head titles.
However, when i open the page for each head titles, i can see duplicate names.
Sorry if this is not clear but i have attached a screenshot about the issue.

Thank you for the support.
Hi there,
Any chance you can link us to the page in question?
You can use the private information field:
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Let me know :)
Hello Leo,
Yeah sure.
Link provided.
On each category on the secondary menu, you see duplicate names.
Many thx
Are you wanting to remove just the second one?
https://www.screencast.com/t/kvYvZMiVn
If so that's just the category description which you can remove in Posts > Categories.
Hello Leo, unfortunately, it doesn't seem to work since if i remove from post > categories, it means while creating a post, I wont have the categories to attach to.
Are you trying to remove the archive title AND description?
If so try this PHP snippet:
remove_action( 'generate_archive_title', 'generate_archive_title' );
Adding PHP: https://docs.generatepress.com/article/adding-php/
This would leave you with no <h1> on the archives though.
Yes, the second name you highlighted as in the screenshot you shared.
Let me try the snippet.
Btw, thank you for real-time support. It is amazing, really happy about this!
If you are trying to remove the category description only then just remove actually remove it from the field here:
https://www.screencast.com/t/3BUqA6Fvgzw9
Fantastic!!! This is it!! Thank you for your time and all the support Leo!
I am still testing out GP and so far so good it is yielding good results.
Marking this as resolved!
No problem :)