Forums

[resolved] How to create a home page tab (5 posts)

  1. Governator660
    Member
    Posted 2 years ago #

    I searched the forum to find "how to create a home page tab" and found this response:

    In your header.php, look for ...

    <div id="naviation"

    This DIV holds your nav bar, once you find that you should see something not far below that looks similiar to this...

      <?php wp_list_pages(); ?>
    Change it to....

    • /">Home
    • <?php wp_list_pages(); ?>

    That's a very basic example, but it should point you in the right direction.

    I looked carefully in the header.php file and it doesn't have any reference to navigation. I just installed the SEO Basics theme and I'm at http://www.survivewith.me. I have created pages but I can't figure out how to get back to the home page since there is no tab.

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    The template tag, wp_page_menu(), has a 'show_home=true` argument that will add Home to your list of Pages.

  3. Governator660
    Member
    Posted 2 years ago #

    Which template file is it in? I loaded most into Wordpad and searched for wp_page_menu() and found nothing.

    Thanks for you help.

  4. MichaelH
    Volunteer
    Posted 2 years ago #

    What I'm saying is, you might consider use wp_page_menu instead of wp_list_pages (which you have to hardcode a Home link).

    Related:
    Stepping Into Template Tags
    Stepping Into Templates
    Template Hierarchy

  5. GDhuyvetter
    Member
    Posted 2 years ago #

    I've put in the wp_page_menu(show_home=HOME)into my header file for the in-Berlin template. The Home link appears on the menu bar, but as a hyperlink, elevated, underlined, and a dark gray.
    I can't figure out how to configure the font for this so it will appear like my about page.
    Page: http://www.platformsandparadigms.com
    Many Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags