Forums

[resolved] Removing "Home" Link from Menu Bar on Theme (9 posts)

  1. realmediamaven
    Member
    Posted 5 months ago #

    I'm using a theme I found online to create a website for a client. But, the theme has a "Home" link on its menu bar that I can't access to either place content on that page or remove the link. Currently, that content is now on a "Welcome" page I created when I was unable to find the "Home" page in the editor. When I or anyone else clicks that "Home" link, it goes to the "Welcome" page.

    So, I'd either like to move the content on the "Welcome" page to the "Home" page or remove that link that says "Home". How do I do one or the other? Here's the link to the site: http://www.judgegregoryaadams.com.

    Does anyone know where that "Home" page would be located in the theme editor or someplace else I don't know about? Thanks.

    Dahna Chandler

  2. Jonas Grumby
    Member
    Posted 5 months ago #

    Sounds like the Home link is hard-coded into the theme, most likely in header.php.

  3. realmediamaven
    Member
    Posted 5 months ago #

    Thank you for your response. I see that in header.php but I'm not sure how to remove or replace it without breaking the theme. Here's the code for header.php. I bolded where I see the code for 'home':

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

    <title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' |'; } ?> <?php bloginfo('name'); ?></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'); ?>" />
    <link rel="Shortcut Icon" href="<?php bloginfo('template_url'); ?>/images/favicon.ico" type="image/x-icon" />

    <!--we need this for plugins-->
    <?php wp_head();

    ?>
    </head>
    <body>

    <div id="container">

    <!--<div align="center"><img src="<?php bloginfo('template_url'); ?>/images/leadad.jpg" alt="Ad" border="0" /></div>-->

    <div id="header">

    <div id="headerleft">
    <h1>/"><?php bloginfo('name'); ?></h1>
    <h2><?php bloginfo('description'); ?></h2>

    </div>

    </div>

    <div id="menu">

      <li class="emphasis">">Home
      <?php wp_list_pages('title_li=&depth=1'); ?>

    </div>

    <!--header.php end-->

  4. realmediamaven
    Member
    Posted 5 months ago #

    Thank you for your response. I a reference to "Home" twice in header.php but I'm not sure how to remove or replace it without breaking the theme. Here's the code for header.php.:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

    <title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' |'; } ?> <?php bloginfo('name'); ?></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'); ?>" />
    <link rel="Shortcut Icon" href="<?php bloginfo('template_url'); ?>/images/favicon.ico" type="image/x-icon" />

    <!--we need this for plugins-->
    <?php wp_head();

    ?>
    </head>
    <body>

    <div id="container">

    <!--<div align="center"><img src="<?php bloginfo('template_url'); ?>/images/leadad.jpg" alt="Ad" border="0" /></div>-->

    <div id="header">

    <div id="headerleft">
    <h1>/"><?php bloginfo('name'); ?></h1>
    <h2><?php bloginfo('description'); ?></h2>

    </div>

    </div>

    <div id="menu">

      <li class="emphasis">">Home
      <?php wp_list_pages('title_li=&depth=1'); ?>

    </div>

    <!--header.php end-->

  5. Jonas Grumby
    Member
    Posted 5 months ago #

    You have to remove that <li class="emphasis">">Home line (I know that's not how it looks in the code).

    Also, when posting code, use the code icon, and try not to post large blocks of superfluous code as it can break things in the forum.

  6. realmediamaven
    Member
    Posted 5 months ago #

    Thank you for your help. Here's what the code looks like. What exactly do I remove to get rid of that link without breaking the theme in the process?

    <div id="menu">
    
    <ul>
    	<li class="emphasis"><a href="<?php echo get_settings('home'); ?>">Home</a></li>
    		<?php wp_list_pages('title_li=&depth=1'); ?>
    
    	</ul>
    </div>
  7. Jonas Grumby
    Member
    Posted 5 months ago #

    <li class="emphasis"><a href="<?php echo get_settings('home'); ?>">Home</a></li>

  8. realmediamaven
    Member
    Posted 5 months ago #

    Thanks! I took that out et voila! The link has disappeared! My client will be thrilled! I appreciate your prompt assistance.

    Have a great night!

  9. Jonas Grumby
    Member
    Posted 5 months ago #

    No problem. Please mark it resolved so others who run into the same problem can benefit.

Reply

You must log in to post.

About this Topic