Step 2a) Modifying the Default Title Tag in Header.php

» Skip to Step 2b) Modifying the More Text

As you saw on the first page of the HeadSpace configuration there is a problem with our title tags. It appears that WordPress is adding “WordPress SEO” on the end of every title tag by default. This is a problem because it appears spammy and, well, we don’t like it! As a result, we are going to make a very minor edit to the header.php file located in the Theme we are using.

On the WordPress menu open “Appearance” then “Editor” at which point you will be confronted with a lot of code that could seem kind of scary. No problemo! Just go to the right hand side of the page and click on “header.php” so that the code from that file loads in the central pane where the code is displayed.

Now, first things first. Copy all and paste it into a Notepad txt file to back it up in case you make a mistake – you can’t be too safe!

After backing up the code search for the <title></title> tag near the top of the code. Here are some examples of what you might see:

6-3 HeadSpace - Title Code before fix6-3 HeadSpace - Title Code before fix vOpar

Now change that code to this much simpler code:

6-3 HeadSpace - Title Code AFTER fix

The end result is the title stops looking like this:

A page title based on global settings is not looking good at all - it appears spammy
And looks like this:

6-2 HeadSpace - Global Settings w Title Fix

Now that the title is working according to plan let’s move on to some more HeadSpace configuration. In this case, we will be enhancing a little known optimization that can help a site: the “More Text“.

Go to Step 2b) Modifying the More Text

3 Responses to “Step 2a) Modifying the Default Title Tag in Header.php”

  1. Oh, thx for this info, I been trying to format my title ever since I installed headspace seo for my blog

  2. rossdunn says:

    You are most welcome Anthony, thank you for coming to the site! Please feel free to tell others :-)

  3. Great! Just great! Fixed the issue with wp title thing. Thanks for this sir!

Leave a Reply

*


Copyright © 2009 WordPress SEO :: Powered by WordPress