Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to delete duplicate navigation bar references to Home?

0
Posted

How to delete duplicate navigation bar references to Home?

0

If your theme displays Pages for navigation, and there is more than one instance of Home in the navigation bar, here’s several ways to fix that. Typically the duplicate problem occurs after someone has created a Page called Home. Many theme authors ‘hard-code’ a reference to Home in the theme’s header.php and use template tag, >wp_list_pages, to display all the other Pages. But, if you’ve created a Page called Home, that likely causes the duplicate navigation item. To delete the duplication, you would edit your theme’s header.php and: • Find and delete the hard-coded reference to Home. • Or, use the exclude=x argument with wp_list_pages() and replace the x with the Page ID of your Home Page.

0

If your theme displays Pages for navigation, and there is more than one instance of Home in the navigation bar, here’s several ways to fix that. Typically the duplicate problem occurs after someone has created a Page called Home. Many theme authors ‘hard-code’ a reference to Home in the theme’s header.php and use template tag, wp_list_pages, to display all the other Pages. But, if you’ve created a Page called Home, that likely causes the duplicate navigation item. To delete the duplication, you would edit your theme’s header.php and: • Find and delete the hard-coded reference to Home. • Or, use the exclude=x argument with wp_list_pages() and replace the x with the Page ID of your Home Page.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123