WordPress Title Tag Fix for SEO

by David on October 22, 2008

I have been reading “Building Findable Websites” by Aarron Walter over the past few weeks. I have been mulling over the concepts and adding features to my own sites as quickly as I can. One of the things that really bugged me about WordPress is the <title> tag used by many of the themes.

For example, the title for this page used to be:

Office Cafe » Blog Archive » WordPress Title Tag Fix for SEO

But a better title is:

WordPress Title Tag Fix for SEO | Office Cafe

I agree with Aarron that it needs to be changed. Fortunately, Christopher Ross published a very easy fix to this problem on his website!

Simply change the <title> tag (found in header.php) to this:

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

Read more here: WordPress SEO Tips – The Title Tag

I will be implementing this on my WordPress sites immediately! Thanks Christopher!

{ 2 comments… read them below or add one }

SEO Guru May 25, 2009 at 11:00 am

I was looking out for this solution for a long time. Thanks a lot for Title Tag Solution :)

David May 25, 2009 at 3:53 pm

Ayush: I am glad you enjoyed it. Best wishes in your SEO projects.

Leave a Comment

Previous post:

Next post: