• I have created a static front page, however now I have two home page links. In my case, Home and Welcome are the same. I have read the documentation related to “Creating a Static Front Page” and it does mention that this problem may occur and how to fix it in the wp_list_pages in the header template.

    This is the html code I have found that I think is relevant.

    <ul id ="navbar">
     <li <?php if ( is_home() || is_single() || is_archive() ) { echo ' class="current_page_item"'; } ?>><a>'>Home</a>
     <?php wp_list_pages('depth=1&title_li'); ?>
    </div>

    [Please post code snippets between backticks or use the code button.]

    Which part do I delete to only have one home page link?

    I am using the WorldOWeb Theme

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Try removing:

    <li <?php if ( is_home() || is_single() || is_archive() ) { echo ' class="current_page_item"'; } ?>><a>'>Home</a>

    Thread Starter helent

    (@helent)

    Thanks Esmi, that worked, however now with the 1 Home page I have there is “home” in the Navigation Bar as well as on the page. See http://www.virtualassistantpro.biz I realise that the original “home” is a template which i have effectively deleted (but can replace). Is there a way that “home” is “home” without the title “home’ on the page itself?

    Try adding the body_class to your theme’s header.php template file. This will then allow you to hide the title on the home page using something like:

    .home .post h1 {display:none;}

    Thread Starter helent

    (@helent)

    Thank you for all your help. HT

    Thank you very much for the assistance. I truly appreciate it. I ended up reloading the wordpress and started over so as not to create the same misstep as I did the first time. thank you again.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Two Home Page Links’ is closed to new replies.