• So I found enough info to make a page named home and give it a customized template. Now I need to know what to do with the default template to get it out of the way so that I DO NOT HAVE TWO HOME PAGES LISTED IN THE NAV. Please advise. (Thanks!)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Your default template is probably index.php and you might need that if you have a blog. Make sure in your “Settings”–>”Reading” you set the home page to be a static page and pick whichever page you created to be the home. After that you might have to edit the code a bit for your navigation.

    Try opening “header.php” You might see a line that looks similar to this:

    <li><a href="<?php echo get_settings('home'); ?>">Home</a></li>
    <?php wp_list_pages('sort_column=id&depth=1&title_li='); ?>

    The wp_list_pages lists all of your published pages including your “Home”. The first link before that is creating another home link and you’d just have to get rid of it.

    I’m just guessing what you’re working with though. Hope that helps.

    Thread Starter marcellavo

    (@marcellavo)

    Yes, Here is the code from my header.php:

    <div id="nav">
    	<div class="menu">
    	<ul class="null">
    <li><a>">Home</a></li>
    <?php wp_list_pages('title_li=&depth=1&exclude=9,10,11'); ?>
    
    	</div>
    </div>

    Are you saying just delete what is in the

    • tags?

    I can’t see all of your code but it looks like you need to take out

    “>Home

    just before the <?php wp_list_pages

    Thread Starter marcellavo

    (@marcellavo)

    Yep, that did the trick. Thanks, jessn!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Want to get the default template out of the way so I have only ONE homepage’ is closed to new replies.