Date:16 July 2008 I Comments: 0 I Views:12,944

Stepping away slightly from the recent vein of posts back into the ‘SEO’ aspect of the blog, I had an epiphany regarding the title setup of my wordpress blog.

It’s probably an important piece of information to anyone that hasn’t done it but way well also be something other people have been doing for years.

If you write a post it’s probably because you want people to read it therefore it makes sense to try and optimise it slightly while composing the content.

Use the ‘key phrase’ a few times without making the content read as though it’s obviously crammed with the phrase.

Google the almighty, also tends to favour the title of the page (If people tell you Google doesn’t, they are wrong. It definitely makes all the difference

If you look in the blue ‘title bar’ right at the top of this web page it reads ‘Optimize your WordPress Blog Title – UKMoneyPot – Personal Finance Blog’.

Before my epiphany, it would have read ‘UKMoneyPot Personal Finance Blog – Optimize your WordPress Blog Title’.

If Google favours page titles then the order used to be all wrong. The first thing Google would have seen is ‘UKMoneyPot….’ instead of the important bit ‘Optimize your WordPress Blog Title’.

In the ‘header.php’ file you’ll see the following code within the <title> tag:

<?php bloginfo(‘name’); ?><?php wp_title(); ?>

The ‘name’ part is the blog name (in this case ‘UKMoneyPot – Personal Finance Blog’)

The ‘wp_title’ part is the title of the post (in this case ‘Optimize your WordPress Blog Title’)

This is the default order of the 2 php tags.

To put the post title first you simply need to switch them around like this:

<?php wp_title(); ?><?php bloginfo(‘name’); ?>

However, you may notice if you do this that the ‘separator’ ‘>>’ is at the beginning and not in between.

To resolve this simply add ‘ – ‘ or ‘ >> ‘ into the ‘wp_title’ brackets like this:

<?php wp_title(‘ – ‘); ?><?php bloginfo(‘name’); ?>

This should give you: ‘Blog Title – Post Title’

But, if you are using a version of WordPress older than 2.5 you will need to replace the whole lot with the following:

<title><?php wp_title(‘ ‘); ?><?php if(wp_title(‘ ‘, false)) { echo ‘–‘; } ?><?php bloginfo(‘name’); ?></title>

If this is all a bit confusing you might find WordPress’s explanation of this easier to follow:


Category: SEO & Web