WordPress.org

Ready to get started?Download WordPress

Forums

Stop post appearing on static front page (3 posts)

  1. giggleberries
    Member
    Posted 5 years ago #

    Hi,

    Can anyone help me with my wordpress page please at http://www.sensualgiftsformen.com/eastmidlands/

    I have created a wordpress site that has the default ‘home’ page and 4 other pages I have added to make 5 pages in total.

    1. Home (plus)
    2. About Us
    3. Training
    4. Blog
    5. Contact Us

    Via the settings/reading tab I have set the post page as the ‘blog’ page.

    I want the front page to be the default wordpress page that is already labelled as ‘home’ and therefore in settings/reading I have left static front page blank so that it defaults to the home page.

    However, when I write a post, the posts get published to my blog as chosen, but they are also displayed on the home page that I set as the static front page.

    How do I stop posts from appearing on the static ‘home’ front page?

    Thanks

  2. stvwlf
    Member
    Posted 5 years ago #

    You have to set the Homepage up as the static home page. That is how you get around the problem you mention. If you find the Home twice on the Nav Bar after doing this, edit your theme's header.php file and remove the hardcoded reference to the Home link.

  3. antorera
    Member
    Posted 5 years ago #

    Hi,

    Not sure if you resolved your problem, but I see you have duplicate titles on the home page in any case. I went through this myself recently, so I will share my findings in case it helps.

    This all depends on what template you are using, so you may have to modify accordingly:

    To remove the original, unneeded home tab, do the following:

    Look in the "header.php" file of the theme you wish to modify. (Be sure to make a backup first!)

    Change this in the header.php file;

    <ul>
    <li <?php if(is_home()){echo 'class="current_page_item"';}?>><a href="<?php bloginfo('siteurl'); ?>" title="Home">Home</a></li>
    <?php wp_list_pages('title_li=&depth=1');?>
    </ul>

    To this:

    <ul>
    <li><?php wp_list_pages('title_li=&depth=1');?></li>
    </ul>

    OR delete this line:
    <li><a href=”<?php echo get_option(’home’); ?>/”>Home </a></li> from this statement:
    <ul><li><a href=”<?php echo get_option(’home’); ?>/”>Home </a></li><?php wp_list_pages(’depth=1&sort_column=menu_order&title_li=’ . __(”) . ” ); ?></ul>

    Here are additional resources for that:
    http://wordpress.org/support/topic/150327?replies=6
    http://bloggingexperiment.com/archives/wordpress-page-as-home-page.php

    Then, to remove having the HOME title appear in your home page body, see the end of this post for my solution:
    http://wordpress.org/support/topic/210632?replies=16

    Hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.