Support » Fixing WordPress » How do I hide duplicate home page tab?

  • I have set up my site with the home page directing to a static page. Because of this I permanently deleted the initial home page but it still appears as a “phantom” home link on the site

    I can’t edit the page to give it a parent page as it’s deleted – I’ve tried re-installing wordpress but that didn’t work.

    As the moment I have removed the title from the static page but the alignment is now out.

    this is my site: http://www.thelifestylist.co.uk

    Any ideas?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try editing your theme’s header.php file and removing:

    <li><a href="<?php bloginfo('url);?>">Home</a></li>

    Thread Starter sorosie

    (@sorosie)

    Hi there,

    Thank you but that didn’t work unfortunately, I have copied my entire header below – any way you could let me know what to delete?

    Thank you!

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”http://www.w3.org/1999/xhtml&#8221; <?php language_attributes(); ?>>
    <head profile=”http://gmpg.org/xfn/11″&gt;

    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
    <meta name=”distribution” content=”global” />
    <meta name=”robots” content=”follow, all” />
    <meta name=”language” content=”en” />
    <meta name=”verify-v1″ content=”7XvBEj6Tw9dyXjHST/9sgRGxGymxFdHIZsM6Ob/xo5E=” />

    <title><?php wp_title(”); ?><?php if(wp_title(”, false)) { echo ‘ :’; } ?> <?php bloginfo(‘name’); ?></title>
    <link rel=”Shortcut Icon” href=”<?php echo bloginfo(‘template_url’); ?>/images/favicon.ico” type=”image/x-icon” />

    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />
    <link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS Feed” href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”alternate” type=”application/atom+xml” title=”<?php bloginfo(‘name’); ?> Atom Feed” href=”<?php bloginfo(‘atom_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />

    <?php if ( is_singular() ) wp_enqueue_script( ‘comment-reply’ ); ?>
    <?php wp_enqueue_script(“jquery”); ?>
    <?php wp_head(); ?>

    <script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/js/superfish/superfish.js”></script>
    <script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/js/superfish/hoverIntent.js”></script>
    <script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/js/jquery.flow.1.1.js”></script>
    <script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/js/iepngfix_tilebg.js”></script>

    <!–IE6 Fix–>
    <style type=”text/css”>
    img, div, a, input, body, span {
    behavior: url(<?php bloginfo(‘template_url’); ?>/images/iepngfix.htc);
    }
    </style>

    <script type=”text/javascript”>
    var $j = jQuery.noConflict();
    $j(document).ready(function() {
    $j(‘ul.ot-menu’).superfish();
    });
    </script>

    <script type=”text/javascript”>
    $j(function() {
    $j(“div#controller”).jFlow({
    slides: “#slides”,
    width: “620px”,
    height: “440px”,
    timer: <?php echo ot_option(‘slider_interval’); ?>,
    duration: 400
    });
    });
    </script>

    </head>

    <body>

    <div id=”wrap”>

    <div id=”header”>

    <div class=”headerleft”>
    <p id=”title”>/” title=”Home”><?php bloginfo(‘name’); ?></p>
    </div>

    <div class=”headerright”>
    <form id=”searchformheader” method=”get” action=”<?php echo $_SERVER[‘PHP_SELF’]; ?>”>
    <input type=”text” value=”Search Here and Press Enter” name=”s” id=”searchbox” onfocus=”if (this.value == ‘Search Here and Press Enter’) {this.value = ”;}” onblur=”if (this.value == ”) {this.value = ‘Search Here and Press Enter’;}” />
    <input type=”hidden” id=”searchbutton” value=”Go” /></form>

    <div id=”navicons”>
    <?php if(ot_option(‘social_rss’) == 1) { ?>” target=”_blank”><img class=”navicon” src=”<?php bloginfo(‘template_url’); ?>/images/rss_icon.png” title=”RSS Feed” alt=”RSS” /><?php } else { } ?>
    <?php if(ot_option(‘social_facebook’) == 1) { ?>” target=”_blank”><img class=”navicon” src=”<?php bloginfo(‘template_url’); ?>/images/facebook_icon.png” title=”Facebook” alt=”Facebook” /><?php } else { } ?>
    <?php if(ot_option(‘social_twitter’) == 1) { ?>” target=”_blank”><img class=”navicon” src=”<?php bloginfo(‘template_url’); ?>/images/twitter_icon.png” title=”Twitter” alt=”Twitter” /><?php } else { } ?>
    </div>

    </div>

    </div>

    <div id=”navbar”>

    <ul class=”ot-menu”>
    <li<?php if (is_home()) { echo ” class=\”current_page_item\””; }?>>“><?php _e(“Home”, ‘organicthemes’); ?>
    <?php wp_list_pages(‘title_li=&depth=4&sort_column=menu_order’); ?>

    </div>

    <div style=”clear:both;”></div>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I hide duplicate home page tab?’ is closed to new replies.