Forums

[resolved] Custom Header Question (4 posts)

  1. Scarinci32
    Member
    Posted 2 years ago #

    Hi,

    I just finished designing a custom header for my blog http://www.livingwithballs.com

    The inove theme I'm using automatically puts the title in the header. Since I've designed a custom header, I no longer need that.

    My question is: Where do I go in the HTML editor to remove that code so the title no longer shows up in the header.

    Thanks in advance,
    John

  2. JasonAG77
    Member
    Posted 2 years ago #

    Hi John,

    You'll want to edit the templates\header.php file, and look for the following piece of code about 15 lines from the top:

    <div id="caption">
      <h1 id="title"><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1>
      <div id="tagline"><?php bloginfo('description'); ?></div>
    </div>

    Simply remove the <div id="tagline"> line, so the code looks like this:

    <div id="caption">
      <h1 id="title"><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1>
    </div>

    You'll still have the H1 for your SEO, but the caption will be gone. Hope this helps!

  3. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    A better option for SEO purposes would be to use the original markup:

    <div id="caption">
      <h1 id="title"><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1>
      <div id="tagline"><?php bloginfo('description'); ?></div>
    </div>

    and replace #header h1 {display:none;} in style.css with:

    #header h1,#tagline {position:absolute;top:-500px;left:-5000px}

    which leave both the blog title & description available for the search engines but removes them from graphical browsers.

  4. Scarinci32
    Member
    Posted 2 years ago #

    That was easy. Thanks for your help!

Topic Closed

This topic has been closed to new replies.

About this Topic