• Resolved harp21

    (@harp21)


    Ive set the front page as Welcome & posts as News. Now im trying to get rid of the Home tab.
    Ive been looking through the files in the editor but am not sure where to find the code for it that needs to be erased.
    Im using the Dark City theme & the latest WP.
    Also, now that I added the Welcome & News tabs, because I added the pages after I did the About Me tab, they have been placed to the right of that tab. How can I switch their positions around so that Wecome is on the far left?
    S.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter harp21

    (@harp21)

    I figured out the second question. When editing a page you can input the pages position…
    Still havent figured out how to get rid of the Home tab though
    S.

    Can you not delete the home page from your admin pages area?

    This is going to be very general in description I’m afraid.

    Look in the “header.php” file of the theme you wish to modify. The line you are looking for will resemble this:

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

    What you seem to be looking for here is the “title=Home”>Home<. Rather than delete this page, can it not remain useful my simply renaming it? I believe that this may actually refer to the “index.php” page that is served when your site is requested, unless you have a custom page for that. Someone with more knowledge please correct my thinking if need be.

    By the way, you probably already know this, but it is always worth repeating. Please make a back up copy of any files you intend to alter before-hand. It saves a lot of grief down the line of something goes not according to plans.

    Changing 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>

    …achieves your goal. I can not speak to the “big picture” consequences of doing this, if any, but if you are happy with your home page and blog page settings, I have confirmed that this will remove the home tab as you desire. A second opinion would be welcome.

    Thread Starter harp21

    (@harp21)

    That was exactly it, thanks!
    S.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Static Frontpage – Removing ‘Home’’ is closed to new replies.