21 Aug 08 _ WordPress SEO Tips – H1 and Title Tags


By Katy
in BlogTorials

A recent WordPress blog integration for Lisbe Partners lead me to consider some Search Engine Optimization decisions that WordPress makes in it templates and here I share modifications.

1. Headings!

WordPress Default template lists Post Titles as <h2> in order to reserve <h1> for your Blog Title. At AWP we like to use <h1> for unique page content titles, so the first main text you see on the page is <h1>. We generally have great SEO ratings, so we are going to stick with that strategy.

The template files, archive.php, links.php, page.php, single.php and search.php can be changed directly. To affect the heading tags for posts, you will need to insert some conditional code in index.php (or post.php, since this file can be used on the single post, the post category list views, and some times the home page). In the following example <h4>’s are used as the list view headings.

<<?php echo (is_single() || is_home()) ? "h1" : "h4"; ?> class="title">
    <a id="post-<?php the_ID(); ?>" href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
        <?php the_title(); ?>
    </a>
</<?php echo (is_single() || is_home()) ? "h1" : "h4"; ?>>

Insert this into the beginning of index.php. (Modified from geniosity musings)

2. Page Title

Another SEO measure we’ve implemented at AWP is ordering titles with specific content first in the browser title bar. For example, if we are several layers deep, the title goes “Page Title _ Sub-Section _ Section _ Website Name,” etc. For more of an explanation, see Web Designer Wall (go to #7).

For interior pages WordPress Default theme uses “Blog Title > Category > Post Name,” which is not Search Engine friendly. To improve this, I borrowed code from The Blueprint Theme which integrates the Google Blueprint framework into WordPress (which I also used in my blog template).

<title><?php wp_title(''); ?> <?php if ( !(is_404()) && (is_single()) or (is_page()) or (is_archive()) ) { ?> | <?php } ?> <?php bloginfo('name'); ?></title>

So, now we get “Post Name > Blog Title.” Happy SEO improving!

Spread the Word:
  • Slashdot
  • Digg
  • Facebook
  • Reddit
  • del.icio.us
  • StumbleUpon
  • Technorati
  • NewsVine


10 Responses to “WordPress SEO Tips – H1 and Title Tags”

  1. Pete Jones Says:

    You’re right on. Couldn’t have said it better myself. -Pete

  2. Christopher Ross Says:

    Thanks Katy, I’m always looking for ways to improve my SEO.

  3. Seo Title Tips Says:

    Oh man, H1 titles can do SOOOO much for your rankings.

    Just adding a H1 tag to one of my pages boosted 3 positions up in Google.

  4. Äkkilähdöt Says:

    This was great piece of advice. H1 tags have been one weak spot on wordpress when it comes to SEO. Maybe we get this right as wordpress default in the future.

  5. Alex Says:

    Thank you, i have been wondering about the title tags now for a while, it definatly is not SEO friendly the way that wordpress arranges it..

    Thank you for the help :) keep it up ;)

  6. asep Says:

    nice article.. thanks

  7. Redsoxmaniac Says:

    For the 2nd code that you have placed; where do I insert this in index.php? Do I replace the other title code, or just add this in the beginning?

    Great article. Thank you.

  8. Redsoxmaniac Says:

    http://www.netconcepts.com/seo-title-tag-plugin/

    Also, is this another solution I could use? Or would it be better that I insert the code?

  9. TINT Says:

    wow, definitely giving this a shot later this week. will comment back with results!

  10. Matt Says:

    i have been using Wordpress for 2 years but i still dont know how to do SEO using Wordpress, is there an SEO pluggin for Wordpress?.


Leave a Reply

Download Full Movie Online Abilify Wyvern download movie Little black book download movie In a dark place download movie Munich download movie Broken bridges download movie Shiloh 2: shiloh season download movie Scooby doo meets batman download movie ringtones for go phones uploading free ringtones make your own ringtones samsung awesome ringtones where to get free ringtones for att Meet the Spartans download movie Enter the Dragon download movie Congo download movie Airheads download movie Canvas download movie Cashback download movie Heavenly Creatures download movie Finishing the Game: The Search for a New Bruce Lee download movie The Level download movie Straight-Jacket download movie Deathline download movie Kung Pow: Enter the Fist download movie Showtime download movie Lean on Me download movie The Story of Anyburg U.S.A. download movie Tinker Bell download movie Under Siege download movie Killing Ariel download movie Street Trash download movie Smart People download movie Crimson Tide download movie Donald's Tire Trouble download movie The Donor Conspiracy download movie The Bank Job download movie The Final Conflict download movie The Lookout download movie Footlight Parade download movie Outside Providence download movie New York Stories download movie In the Heat of the Night download movie Taxi Driver download movie Carry on at Your Convenience download movie My Boss's Daughter download movie The Black Gestapo download movie 8MM 2 download movie Texas Rangers download movie Meet the Spartans download movie Enter the Dragon download movie Congo download movie Airheads download movie Canvas download movie Cashback download movie Heavenly Creatures download movie Finishing the Game: The Search for a New Bruce Lee download movie The Level download movie