• Resolved Scarinci32

    (@scarinci32)


    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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!

    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.

    Thread Starter Scarinci32

    (@scarinci32)

    That was easy. Thanks for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Header Question’ is closed to new replies.