Change the Title Tags for your Blog

13 Sep 2009

Until recently, the title tags generated for each page of your Blogger blog would display the blog title first, then the name of your post. This wasn't so good for SEO (search engine optimization) as this made keywords from your post titles appear after your blog title.

Luckily, Blogger have come up with a simple fix for this problem for those who use Layouts templates: the <data:blog.pagename> tag!

This new tag is already installed for new blogs (or if you change your existing template to one of Blogger's default ones).

However, if you have customized your template or uploaded a third party template, you will need to change the original to the new tag for this change to take effect.

But don't worry: this is REALLY easy! Here's what you have to do:

1.Go to Layout > edit HTML in your Blogger dashboard.
2.Search for this tag:
3.Replace this tag with the following:

<b:if cond='data:blog.pageType == &quot;index&quot;'> <title><data:blog.title/></title> <b:else/> <title><data:blog.pageName/></title> </b:if>

4.Save your template! (See, this is an easy hack!)

Once you've changed this tag, you'll see that on post pages, the default [blog name] page title format for your post titles in the browser window will be replaced solely by your post title instead. This will increase the chances of your posts being picked up in search engine results for keywords which appear in your post titles (and can ultimately help draw more targeted traffic to your blog.

5 komentar:

Faraz mengatakan...

Excellent, I had a problem with duplicate description and title. I am sure these code will resolve it. If you read my comments, please let me know do I have to submit my site again to webmaster or it will automatically take new titles and descriptions.

Jirel mengatakan...

First of all thanks for letting us know about this latest hack.
For me this is very important because when I had implemented one hack by many bloggers including b:section in the head part, traffic to my blog was increased considerably. When Blogger didn't supported b:section in head few months back, traffic again decreased. But now I hope this developlment will work very fine.

Michael mengatakan...

thanks for coming over so quick and leaving your comment I am relatively new to blogging and any advice on improving what I am doing would be greatly appreciated, do you think I am linking too many pictures for instance

irur mengatakan...

Thanks a lot for this awesome tip. 'Tried it in my new blog and it works great.

aan mengatakan...

Thanks for the help! Up until now I've never EVER had one of these "easy hacks" work for me - I've always blanked up my html beyond recognition and had to start over. You didn't include all of the necessary information but Julian really filled in the cracks. Thanks!

Posting Komentar