WordPress.org

Ready to get started?Download WordPress

Forums

How can I exclude the home page from the navigation menu? (9 posts)

  1. Zambrano Sergio
    Member
    Posted 4 years ago #

    I need to remove the default home page from the top navigation.
    It's not a page.

    Does anybody know how?

  2. MichaelH
    Member
    Posted 4 years ago #

    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.

    Related:
    Stepping Into Template Tags
    Stepping Into Templates
    Template Hierarchy

  3. Zambrano Sergio
    Member
    Posted 4 years 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.

  4. MichaelH
    Member
    Posted 4 years ago #

    Do a search for 'home' in your theme files.

    http://wingrep.com

  5. Zambrano Sergio
    Member
    Posted 4 years ago #

    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.

  6. MichaelH
    Member
    Posted 4 years ago #

    wp_list_pages does NOT add home to the pages.

    Leave a link to see the problem and maybe someone will see the light.

  7. MichaelH
    Member
    Posted 4 years ago #

    Note wp_page_menu does add home to the list of pages...

  8. greglins
    Member
    Posted 4 years ago #

    Thanks - found what I needed here and it worked!

  9. deepdave
    Member
    Posted 3 years ago #

    Hello greglins,

    Can you say what you did to make the home link disappear?

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic