Support » Fixing WordPress » elminate one of two “Home” buttons located in header.

  • Where do I find the code written that controls the Home buttons on the header. I have several buttons labeled and functioning properly at the base of the header, but two of the buttons are labeled “home”, one of which points properly, and the other of which does not.

    Please help me clean this up.

    Ver. 2.3.1

Viewing 15 replies - 1 through 15 (of 15 total)
  • header.php of the theme.
    It is an issue discussed several times around here. If you use the frontpage/postspage feature from Options > Reading AND the theme already has a hard coded “home” link in the menu – you end up with 2 Home links.
    Remove the hard coded link.

    Thread Starter wbayley


    where is the hard coded link?


    Thread Starter wbayley


    Your response in enigmatic to me. Please be specific, so I can solve this mystery. I have had the problem for two months now, and still no answer that solves it. I have had two people look at ti, and they can’t solve it either. Something is wrong here!

    Thread Starter wbayley


    This is an enigmatic answer. Please be specific. You accuse me of rambling, yet you refuse to give me an answer I can use. Don’t close this until my problem is solved!!

    Thread Starter wbayley


    Moshu, please answer this!!!

    Fisrt of all I am not obliged to answer anything – none of the volunteer helpers have any kind of “obligation”.

    You were given the exact answer several times in several different threads. So, here is for the last time:
    – open your theme’s header.php file in a plain text editor on your computer (Notepad would be fine)
    – make a backup copy, just in case something goes wrong
    – find the link (anchor tag: <a href...>Home</a>) with the link text “Home”.
    – delete it
    – upload the edited file via FTP to your server in the proper directory: wp-content/themes/your-theme-name/

    If all this is “enigmatic” for you – then you have a few choices:
    a) stop thinkering with your blog
    b) learn basic HTML if you want to own and modify a website
    c) pay somebody to do it for you

    Moshu, thank you so much for your instructions 🙂

    I’ve been trying to figure this out for a week, and your instructions were most helpful. Now, I finally have only one Home page.

    I am new to wordpress. but I have some questions around the above issue:
    In themes where the homepage is hardcoded, what document does it link to? does it reformat the blog as the front page, or does it link to some hardcoded home page. When the theme hardcodes the homepage, how does one edit it if it is not in the page list? also, is there a way to have the title field be different from the link name, as in, ” I want the page to be called home in the page list, but I don’t want “home” as the title to the text on my front page.”

    Also if one selects the option as a static page for the home page, where can one display the blog?
    Any help would be very appreciated. Thanks in advance.

    Hi All,

    I’m sorry…I am having the same problem, however I just cant figure out what past to delet within my header.php

    I have included the code, possibly someone could point out what to remove. I had removed the the following but….

    <?php wp_head(); ?>
    <body<?php if (() ) {“<?php } ?>>
    <div id=”page” class=”clearfloat”>

    but this certainly was not the correct html.
    Here is the full Header.php
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “”&gt;
    <html xmlns=”; <?php language_attributes(); ?>>

    <head profile=”″&gt;
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />

    <title><?php bloginfo(‘name’); ?> <?php if ( is_single() ) { ?>
    » <?php
    foreach((get_the_category()) as $cat) {
    echo $cat->cat_name . ‘ ‘;
    } ?> <?php } ?>

    <?php wp_title(); ?></title>

    <meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats –>

    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />
    <link rel=”stylesheet” href=”<?php bloginfo(‘template_url’); ?>/nav.css” type=”text/css” media=”screen” />
    <link rel=”stylesheet” href=”<?php bloginfo(‘template_url’); ?>/print.css” type=”text/css” media=”print” />

    <script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/js/dropdowns.js”></script>

    <link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS Feed” href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />

    <?php wp_head(); ?>
    <body<?php if (() ) {“<?php } ?>>
    <div id=”page” class=”clearfloat”>

    <div class=”clearfloat”>
    <div id=”branding” class=”left”>
    <h1>/”><?php bloginfo(‘name’); ?></h1>
    <div class=”description”><?php bloginfo(‘description’); ?></div>

    <div class=”right”><?php include (TEMPLATEPATH . ‘/searchform.php’); ?></div>

    <ul id=”nav” class=”clearfloat”>

    Holy crabbiness!

    Moshu, thanks for the clear explanation. I was having that same “Home” page issue, and your instructions enabled me to resolve it very quickly and easily. Thanks!

    Thanks for all the great info above! I have edited my header.php before with another thesis wordpress site, but when I transferred it over this time it was blank. All there was was “>”. I got the file from the wp-content/custom/themes/thesis. What could I have done wrong?


    The Home link that you need to delete is not always in the header.php file. For example, if the header file calls a function like “nav” or “menu” then the Home link may be in the Theme Functions file.

    I just fixed the duplicate Home page problem by editing the functions.php file in one theme.

    Might be in other places too, but you should find a reference to it in your header.php file. It is then a matter of tracking it down and experimenting to see what works in your theme. I use the WordPress Theme Editor for this. Remember to make a copy of any code that you delete so you can put it back!

    Ok great – I’ll work with that. Do you know why my header.php is blank? The site appears fine.

    Never you mind me. I was getting it from the wrong place – thanks for your help!!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘elminate one of two “Home” buttons located in header.’ is closed to new replies.