• Resolved huethejackson

    (@huethejackson)


    2 Homes – New Ticket – 3-18-2011

    I’m still having problems where I changed themes and ended up with duplicate homes. One comes with the theme automatically, ending in ___.com. The problem with this page, is it won’t list inside my Pages and I can’t use it as a static front page like I want to. When I try to create a new page for Home, (even under another name), it creates a second home page ending in .com/home.

    The static front page document told me to find the php file with wp_list_pages in it, and change that code. I found it in the header.php file, and have it narrowed down to 6 lines, with only 2 seeming really relevant.:

    </div>
     <div id="nav">
      <ul>
       <li><a href="<?php echo get_option('home'); ?>/">Home</a></li>
        <?php wp_list_pages('title_li=&depth=1'); ?>   </div>
    <div class="wrap_bg">

    with only these two lines being relevant:

    <li><a>/">Home</a></li>
        <?php wp_list_pages('title_li=&depth=1'); ?>   </div>

    I haven’t used html for a long time, and even though I tried for two hours, I haven’t been able to find how to change these two lines. Any assistance appreciated.

    I also had problems in a previous post with inserting code. It split my ticket in two, and didn’t even show one of the lines. I’m use the box /code above before my html statements, but if that doesn’t fix this, I could use ideas for that too.

    Thanks in advance,
    [signature moderated as per forum rules]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Not 100% sure I’m understanding you, but have you tried removing this line?

    <li><a href="<?php echo get_option('home'); ?>/">Home</a></li>

    If a second Home is automatically being generated via wp_list_pages then you don’t need the first one. Try it and see. Back up header.php so you can easily revert back if it doesn’t do the trick. Let me know!

    Thread Starter huethejackson

    (@huethejackson)

    Almost right. I did what you said, and it got rid of one of the tabs for the two homes in the list of pages at the top. I also was able to set home and my blog page to static pages.

    The only problem I have left, is in my template it lists the pages on a navigation bar on the left-hand column, and it’s still showing 2 Homes there (under Pages).

    Otherwise, this is awesome. I’ve been struggling with this problem for months, and if I hadn’t found this forum I probably would have never been able to fix this by myself.

    Thanks, you’re awesome. 🙂 Dave

    Moderator Kathryn Presner

    (@zoonini)

    Glad it worked!

    For the second menu, do you know which theme file is generating the left-hand column? Check sidebar.php or anything with the word sidebar in it. You could also check Appearance > Widgets or Appearance > Menus. You need to find out what’s generating it before we can figure out how to get rid of the duplicate Home. Posting a link to your site and the name of your theme would also be helpful.

    Thread Starter huethejackson

    (@huethejackson)

    Wow, zoonini,

    I figured it out myself. I just found the sidebar.php and experimented with cutting things. Not only was I successful in getting rid of the 2 Home pages on the wp_list_pages in the sidebar, I got rid of all the pages; including the title Pages on the sidebar.

    I am excited. I didn’t know I’d ever be able to understand wordpress this well. You guys at the forum have saved my blog. I’m almost proud of myself for starting to pick this whole thing up.

    Thank you so much,

    Dave

    Moderator Kathryn Presner

    (@zoonini)

    Awesome! I’m glad you’re getting the hang of it and it does feel good to solve things yourself, doesn’t it? 😉

    If you wouldn’t mind marking this thread as resolved by using the drop-down menu at the top right, it would be appreciated. Thanks!

    Good luck with your site!

    Thread Starter huethejackson

    (@huethejackson)

    Sorry. Not quite ready to consider it resolved yet.

    New Problem: I created a Blog Central (where I left the body blank as it said to do in “Create Static Front Page”, and under the Reader setting it shows that both Home and Blog Central are static pages.

    After that, I added a bunch of individual blog subjects under Blog Central using the “page hierarchy” setting where you can make pages sub-pages of other pages.

    My new problem is, when I click on the tab “Blog Central” at the top of the home page, it doesn’t show any of these subordinate sites.

    I was wondering if 1) You’re supposed to link blog topics that are subordinate to larger blog subjects using categories instead of links?

    Also, I wondered if maybe I did something wrong when I edited my sidebar.php files to get rid of all references to Pages on the left-hand side.

    Thanks in advance,

    Dave

    Thread Starter huethejackson

    (@huethejackson)

    Note: The name of my site is http://www.fantasyfictionforfunandmoney.com if that helps. (Should have probably told you that before).

    Dave

    Moderator Kathryn Presner

    (@zoonini)

    Dave – I recommend starting a new thread for your new question since it’s a different issue. Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Duplicate Homes – Almost There’ is closed to new replies.