Problems with Adding H1 Tags

Discussion in 'CSS' started by gmr324, Nov 27, 2009.

  1. #1
    I'm trying to add H1 tags to my site for SEO purposes. The problem I'm having is that when I add it, the blog title font size gets modified and I
    wanted to keep it the same size and style as it is now.

    So, I modified the header.php file to add it here:

    --- original code

    <div id="header">
    <div id="logo"><a href="<?php echo get_option('home'); ?>/">
    <?php bloginfo('name'); ?></a><span class="description"><?php bloginfo('description'); ?></span></div>

    --- modified code

    <div id="header">
    <div id="logo"> <h1> <a href="<?php echo get_option('home'); ?>/">
    <?php bloginfo('name'); ?></a> </h1> <span class="description"><?php bloginfo('description'); ?></span></div>


    Here's the source of my WP theme:
    http://www.webdesignlessons.com/dynablue-wordpress-theme/

    Here's my blog url:
    http://tinyurl.com/yfpejf3


    Any Advice Appreciated

    George
     
    gmr324, Nov 27, 2009 IP
  2. ffb

    ffb Active Member

    Messages:
    79
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    75
    #2
    try... find this in the .css file:

    #header #logo {
    Code (markup):
    and change it to

    #header #logo h1 {
    Code (markup):
     
    ffb, Nov 27, 2009 IP
  3. unigogo

    unigogo Peon

    Messages:
    286
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    <h1> is a block element, after modified the description should start another line
     
    unigogo, Nov 28, 2009 IP