Site logo

Archived topic

Remove Duplicate Names on Secondary navigation menu headers

10 replies · Started by Amos on June 22, 2022

Viewing posts 1–11 of 11

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.

Duplicate names for nav menu

Thank you for the support.

Hello Leo,

Yeah sure.

Link provided.

On each category on the secondary menu, you see duplicate names.

Many thx

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!

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 :)

This archived topic is closed to new replies.