• I’m using Headlines Enhanced on WP 3.2 and I’ve created a static home page to replace the most recent blog posts front page.

    It’s created, but now I have two home pages. I’ve looked at all the other solutions that have been offered to people. Most of the time, they are told to delete some code from their header.php file.

    But, after much searching, I think I have found the piece of code (but it was in my pag-nav.php file. Here is the section of code I’m looking at…

    <li class=”page_home<?php if (is_home()) : ?> current_page_item<?php endif; ?>”>” title=”Home”>Home

    <?php wp_list_pages(‘sort_column=menu_order&depth=4&title_li=&exclude=21,24’.get_option(‘woo_nav_exclude’)); ?>

    What part should I delete to get rid of the default home page?
    Does anyone know?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter all41inc

    (@all41inc)

    It didn’t show up in full.. Wait, I’ll try again:

    `<li class=”page_home<?php if (is_home()) : ?> current_page_item<?php endif; ?>”><a href=”<?php bloginfo(‘home’); ?>” title=”Home”>Home</a></li>

    <?php wp_list_pages(‘sort_column=menu_order&depth=4&title_li=&exclude=21,24’.get_option(‘woo_nav_exclude’)); ?>

    I’m thinking it’s the first part of this code that I should delete.
    But I want to be sure.`

    tigtog

    (@tigtoggmailcom)

    It sounds like you don’t actually have two Home pages, just two Home links in the navigation bar. They should both take you to the same page now that you have set a static page as your Home page.

    Since you’re using a Woo Theme, they all use the Custom Menu to overwrite their default menu, so you shouldn’t need to touch that pag-nav.php file. Just create a Custom Menu with the navigation links that you want, and activate it.

    (You should also really be asking your questions on the Woo Themes forums – that’s what you’ve paid the premium for)

    tigtog

    (@tigtoggmailcom)

    P.S. create and manage custom menus via
    Dashboard >> Appearance >> Menus

    Thread Starter all41inc

    (@all41inc)

    Thanks a lot. I didn’t realize this was a premium theme. It was initially set up through a third-party program, and I’m just tweaking it.

    Thanks a lot for the advice. I’ll give it a try.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘two home pages… which code to delete?’ is closed to new replies.