Support » Plugins and Hacks » How can I exclude the home page from the navigation menu?
7 years, 6 months ago
I need to remove the default home page from the top navigation.
It’s not a page.
Does anybody know how?
Could be in your theme’s header.php and it could be a hardcoded link you could delete. If the home line is presented by the template tag, wp_page_menu(), use the argument show_home=false.
Stepping Into Template Tags
Stepping Into Templates
7 years, 5 months ago
No, it’s not generated with the wp_page_menu.
I did the template myself.
It’s generated by the WP_list_pages() function, but I haven’t found where the home link is added in templates.php.
I don’t have problems going to the right php function and hacking it, but I just haven’t found it yet.
Do a search for ‘home’ in your theme files.
I need to know where the function wp_list_pages() adds the home to the list. I created my theme and I know there’s nothing inside my theme’s folder having to do with the WP function.
I looked for wp_list_pages but none of the results gave me a clue.
wp_list_pages does NOT add home to the pages.
Leave a link to see the problem and maybe someone will see the light.
Note wp_page_menu does add home to the list of pages…
6 years, 7 months ago
Thanks – found what I needed here and it worked!
6 years, 6 months ago
Can you say what you did to make the home link disappear?