• Resolved nickie1105

    (@nickie1105)


    I’ve looked around for a solution to this but I’m either stupid or they don’t explain things explicitly enough for a newbie at WordPress.

    The link to my blog is https://www.premierpds.co.uk and I’m currently using the Harvest theme!

    I wanted a static home page so created a page named ‘home’ and created another page titled ‘blog’ for my posts page. both these pages appear in the top navigation bar as they should. However, since the theme came with it’s own ‘homepage’, there are now two links the home page in the main nav bar which both lead to the same place. I need to get rid of, hide or replace the ‘homepage’ link that came with the theme with my own ‘home’ page…how do I do this??? I’d really appreciate your help…getting really frustrated with it now after searching around for days trying to find a solution!!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • MichaelH

    (@michaelh)

    You will probably find a hard-coded reference to Home in your theme’s header.php file that will need deleting.

    Related:
    Stepping Into Template Tags
    Stepping Into Templates
    Template Hierarchy

    Thread Starter nickie1105

    (@nickie1105)

    Thanks Michael, I really appreciate your reply…okay, I’ve copied and pasted the header.php file here as I don’t know what I’m looking for and I’m hoping you might be able to tell me what to do next…what code to look for and delete???

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    <head profile="https://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?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="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(); ?>
    </head>
    <body>
    <div id="logo-wrap">
    	<div id="logo">
    		<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    		<h2><?php bloginfo('description'); ?></h2>
    	</div>
    </div>
    	<!-- end logo -->
    
    <div id="header">
    	<div id="menu">
    		<ul>
    			<li class="page_item<?php if (is_home()) echo ' current_page_item'; ?>"><a href="<?php echo get_option('home'); ?>/" class="current_page_item">Homepage</a></li>
    			<?php wp_list_pages('title_li=' ); ?>
    		</ul>
    	</div>
    	<!-- end menu -->
    </div>
    <!-- end header -->
    <div id="wrapper">
    <div id="wrapper-btm">
    <div id="page">

    Again, I’d really appreciate your help, this is driving me crazy lol!!!

    MichaelH

    (@michaelh)

    This code displays Homepage so delete it

    <li class="page_item<?php if (is_home()) echo ' current_page_item'; ?>"><a href="<?php echo get_option('home'); ?>/" class="current_page_item">Homepage</a></li>
    Thread Starter nickie1105

    (@nickie1105)

    Thanks Michael…phew, FINALLY…all’s well now and the homepage that came with the theme is now gone…couldn’t have done it without you, you’re my hero lol!!!

    Even though this is resolved, I’m suffering from the same thng on a website hosted at www.remarpro.com, so I cannot do some of the things these forums talk about.

    How do I get rid of an extra home page when I don’t want it?

    Yours in anticipation

    savvychick

    (@savvychick)

    Thanks, Michael – worked perfectly. Much appreciated.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Two links to homepage in nav bar???’ is closed to new replies.