Results 1 to 7 of 7

Thread: Wordpress Navigation Problem - Static Page as Home Page

  1. #1
    bogart's Avatar
    bogart is offline Super Moderator
    Join Date
    May 2009
    Location
    New York
    Posts
    3,772
    Thanks
    1,886
    Thanked 776 Times in 609 Posts

    Wordpress Navigation Problem - Static Page as Home Page

    I have an issue with wordpress where I've created a wordpress site with a static home page. The static page needs to be called “Home” or some other name. The problem is that when I make a static home page, I have two duplicate pages - the "static front page" and the "Home" page.

    You really shouldn't need to do anything. Google will usually resolve the duplicate page issue.

    But I decided to monkey around with it. I changed the 'static front page' to a 'sticky post' and removed the links to the page called "Home' from the navigation and from the page title in the header of the post.

    The page has now dropped like a brick. Any thoughts?

  2. #2
    iowadawg's Avatar
    iowadawg is offline Free Cell Champion
    Join Date
    May 2010
    Location
    Not in Texas
    Posts
    2,071
    Blog Entries
    4
    Thanks
    166
    Thanked 360 Times in 309 Posts
    See how easy it is?
    So many people are afraid to make changes to a wordpress theme or the base wordpress script.

    I do that on a lot of my blogs, get the navigation to home/about/any other pages from the top to the sidebar.
    And eliminate the about page.

    Really, the only reason Home page is there is for people to be able to get back to the front page from any interior pages they are at.
    I have seen lots of blogs with no Home page, or where the title is linkable to the home page.

    And a lot of people really do not know about Pages in wordpress.
    Excellent way to put information you want people to find no matter where they are at on your blog.

  3. #3
    bogart's Avatar
    bogart is offline Super Moderator
    Join Date
    May 2009
    Location
    New York
    Posts
    3,772
    Thanks
    1,886
    Thanked 776 Times in 609 Posts
    Quote Originally Posted by iowadawg View Post
    See how easy it is?
    So many people are afraid to make changes to a wordpress theme or the base wordpress script.
    Wordpress really isn't designed as a content management system. It takes a lot of time to modify the templates, because, you need to look in a lot of different files. Wordpress is basically php code connected to a sql database.

    For a mini site of 5-20 pages, I recommend using a 'php include' template. Even without any knowledge of php, the php include templates are easy to modify. Here's a couple of free php include templates available for download:

    Free PHP Web Design Template Download

    FREEWebPlate: A FREE PHP / CSS / XHTML Website Template... Enjoy | Fully Customize | Fully Make It Yours

    Quote Originally Posted by iowadawg View Post
    And a lot of people really do not know about Pages in wordpress. Excellent way to put information you want people to find no matter where they are at on your blog.
    Instead of using pages, I'm using posts. The 'homepage' is a sticky post and the index is set to display 1 post.

    I'm using the following code to display the posts in a menu in the sidebar. $post->ID == '10' is the post ID of the sticky post which excludes the post. So that you don't have duplicate content.

    Code:
    <ul><h2>Menu</h2>
      <li><a href="<?php echo get_option('home'); ?>/"></a></li>
      <?php query_posts('showposts=20'); ?>
      <?php while (have_posts()) : the_post(); if( $post->ID == '10' ) continue; ?>
      <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
      <?php endwhile;?>
    </ul>

  4. #4
    TopDogger's Avatar
    TopDogger is offline Über Hund
    Join Date
    Jan 2009
    Location
    Hellfire, AZ
    Posts
    3,050
    Thanks
    345
    Thanked 909 Times in 694 Posts
    @bogart, I had that problem one time when I used a WordPress 'page' and designated it as the home page. I ended up with two URLs for the home page. I excluded the file name frome the menu, but Google still found it because there are still two valid URLs for the same page. Googlebot may have found it before I excluded the page in the menu or it could have picked it up through the Toolbar.

    The better way to deal with this is a make a copy of the index.php home page file in your theme and rename it as home.php or simply use index.php. Re-work this as your static home page and you will not end up with two URLs as the home page. home.php is part of the WordPress override system. WordPress looks for that file name BEFORE it looks for index.php in your theme. You end up with only one possible URL representing the home page. The only downside is that you have to manually edit it when you want to make changes.
    "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- Benjamin Franklin


  5. Thanked by:

    bogart (27 December, 2010), rome9t9 (26 December, 2010), Sami4u (27 December, 2010)

  6. #5
    bogart's Avatar
    bogart is offline Super Moderator
    Join Date
    May 2009
    Location
    New York
    Posts
    3,772
    Thanks
    1,886
    Thanked 776 Times in 609 Posts
    @TopDogger Seems to be an issue with the theme. But yeah, excluding the page still leaves the orphan post for Google to find and crawl. I installed WordPress › Redirection WordPress Plugins wordpress plugin and 301 redirected the post to the index page.

    I wish I had left the site alone. It was ranking the third page on the EMD with only one article and no link building. Now the site is page #25

  7. #6
    TopDogger's Avatar
    TopDogger is offline Über Hund
    Join Date
    Jan 2009
    Location
    Hellfire, AZ
    Posts
    3,050
    Thanks
    345
    Thanked 909 Times in 694 Posts
    I had to do an .htaccess 301 redirect to fix the problem when I ran into it.

    You should check that redirection plugin with WP 3.0.3. 6 out of 8 people report that it does not work with 3.0.3.
    "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- Benjamin Franklin


  8. Thanked by:

    bogart (28 December, 2010), m42 (29 December, 2010)

  9. #7
    bogart's Avatar
    bogart is offline Super Moderator
    Join Date
    May 2009
    Location
    New York
    Posts
    3,772
    Thanks
    1,886
    Thanked 776 Times in 609 Posts
    Quote Originally Posted by TopDogger View Post
    I had to do an .htaccess 301 redirect to fix the problem when I ran into it.

    You should check that redirection plugin with WP 3.0.3. 6 out of 8 people report that it does not work with 3.0.3.
    The redirect is working. But I have wordpress 3.0.1 installed.

    The redirect seems to have done the trick. The site has moved up three pages since yesterday.

Similar Threads

  1. [WTT] Proxy List Submission Page / Home Page Trade
    By vectro in forum Links
    Replies: 2
    Last Post: 8 December, 2010, 04:13 AM
  2. SEO of Blog Home Page
    By Andy101 in forum On-Site SEO
    Replies: 3
    Last Post: 7 September, 2010, 03:47 AM
  3. Replies: 0
    Last Post: 29 April, 2010, 11:26 AM
  4. Replies: 4
    Last Post: 10 November, 2009, 02:01 AM
  5. only home page is translating
    By autotech234 in forum Translation Script Support
    Replies: 3
    Last Post: 24 May, 2009, 08:43 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •