55 Change the Title Tags for your Blog
Saturday, May 10, 2008 /


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 <data:blog.pageTitle/> to the new <data:blog.pageName/> 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: <data:blog.pageTitle/>

  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.

I hope this little trick will be useful to you all! And for the Blogger team (if you're reading this): Thank you!


55 comments:

February 14, 2009 at 8:20 PM Bianca said...

You are a star! Thanks heaps. Nice hack to help with SEO

www.bizeblogger.blogspot.com

February 15, 2009 at 5:50 PM Bob Tyndall said...

This Hack is perfect. It was exactly what I was looking for. Wordpress does this automatically in the SEO plugin. I think this is better. It leaves of the blog title that normally trails the post title that wordpress does.

Thanks

February 17, 2009 at 2:30 AM Kashif said...

I am already using this hack for sometimes now and it works fine. What I wanted to do further was to have title for my 'label' pages as well which unfortunately I failed to achieve. I wanted the label name to appear in the page title when viewing label or category pages. Shed some light on this one if its possible.

February 17, 2009 at 1:18 PM Minty said...

thanku thanku thanku :)

February 20, 2009 at 8:15 PM lintang said...

I have found a lot of information that i looking for, especially for SEO in Blogger

Thank you very much

February 26, 2009 at 11:26 PM levian said...

i need to change the "title" to "pageTitle" to make it work. wonder why was that?

March 1, 2009 at 5:05 PM Brian said...

Thank you Amanda, It work fine

March 4, 2009 at 7:35 PM 7nRose said...

Thans for all Amanda and friends. I notice that i have to replace all Tittle Tag NOT only data:blog.pageTitle

March 6, 2009 at 5:56 PM wazzupweb said...

thank u so much for this very nice hack!! :) take a look a my blog.. :) i'm also using the recent comment widget :) you are so nice!! :)

March 8, 2009 at 6:20 AM 100 Greatest Jazz Albums said...

Thanks for this.

It doesn't quite work on my blog. When a page loads, instead of displaying the page title it displays the URL!

Amy idea why this is? I'm using blogger template Sand Piper.

March 12, 2009 at 7:38 AM Peter said...

Hi! I found the code between title and /title. Do I place your code between them or overwrite the whole thing?

Thanking you for all your help in the past.

Take Care,
Peter

March 12, 2009 at 8:01 AM Peter said...

Hi! Sorry! Fixed the problem after reading Julian Schoffel's comment! Yes, I am a knucklehead - regards Peter

March 26, 2009 at 2:17 AM herman said...

thanks amanda. its work for me..

March 27, 2009 at 12:22 AM T1Q-NO said...

thank four your tips. i hope it work on my blog.
tipsandcara-ngeblog.blogspot.com

March 27, 2009 at 11:02 AM Salil said...

Hey thanks Amanda for this wonderful tip.
Did this on my blog and works great.
Cheers,
Salil

April 3, 2009 at 12:21 AM OKTAYUSX said...

thanks man :) Good job !

April 7, 2009 at 7:44 PM Blackswan said...

Hi,

Found your great blog & implemented the code. Not sure if it's working eg. I searched under Google for "Sushi Birthday Cake" or "Guide To An Authentic Louis Vuitton Bag" but nothing was linked to my blog "Luxury Haven".

Amanda or any experts, could you kindly check what went wrong? I'm really new to blogging. Thks so much!]

Blackswan,
http://luxuryhaven.blogspot.com

April 14, 2009 at 5:27 PM Summers Opposite said...

Hi there. I added this to my blog and it works great except that this: title with the (greater than and less than signs) appears before my actual title. Does this happen to anyone else? If so, how did you fix it?

April 16, 2009 at 7:52 AM
Faruk said...

Thanks i could added this code in my website.
http://www.worldgamenews10.blogspot.com

April 21, 2009 at 10:14 AM idreesbari said...

thanks it is very helpful for me
http://latestsongsmoviesvideos.blogspot.com/2009/04/azmat-e-mustafa-part-2-of-2.html
Muhammad idrees

April 30, 2009 at 4:28 AM Free Articles said...

thanks for nice post,very useful

April 30, 2009 at 8:28 PM make-money-online-gede said...

Thanks for your suggestion, i have been put into my blog at , please check master of blogging . . .http://make-money-online-gede.blogspot.com/

May 2, 2009 at 4:17 PM Fahmi Reiz said...

Wow! This tip u gave is superb. Your truely the best!!!

Thanks

May 6, 2009 at 11:01 PM Top Stories said...

Can the code be modified so that it displays the post title followed by the blog title?

May 12, 2009 at 2:14 AM Rinku said...

such a nice information
thanks amanda

I'll gr8ful t you

May 21, 2009 at 3:37 AM Julian said...

i dont understan, i used this script before but no change

May 28, 2009 at 10:56 PM
Un Músico de Estepona said...

great, thanks

May 28, 2009 at 11:28 PM blog sedekah said...

i will take amanda,,
Thanks for your suggestion

nc post
thk u

June 5, 2009 at 12:19 AM TAN said...

Thanks for your updated info on Blogger

I am very happy to visit ur blog.


Visit my READ18 Buzz

June 11, 2009 at 1:48 AM Web Development Blog said...

Here is a trick that I am using:

http://911-need-code-help.blogspot.com/2009/05/change-titles-of-blogger-blog-for.html

It shows that you can combine blog.pageName along with blog.title to put both items in the html title tag resulting in something like this:

my post title | my blog title

The home page will simply display:

my blog title

June 18, 2009 at 7:47 AM babu @ lokesh said...

Thx after applying this in my blog www.newhackerszone.tk My traffic increased rapidly...

June 19, 2009 at 9:08 PM Fitness Equipment Hire Southampton said...

Thanks for the suggestion, I have had same issue with template tag.

June 20, 2009 at 4:03 AM e-okul said...

thanks alot

http://www.ilsis.org

June 26, 2009 at 9:36 AM mutuelle said...

Thank you for the explination I wanted to fix it the last 2 months ,now I think I can do.
Thank you so much

July 3, 2009 at 1:17 AM [essential electronic music] said...

Google doesn't index the site after the change of the page title.

Regards From Corfu

July 4, 2009 at 6:35 AM
Anonymous said...

hi amanda
you said that better for SEO ... so why you dno't use it?
thank you.

July 15, 2009 at 8:37 PM radith said...

Hi!. when i first read the post, i found it's not quite usefull for me as i already got that blog.pageName, but after several months away from my blog, i found that new template don't have that blog.pageName now! is it coming from google itself? why would they go back and step back from things they've already tried to fixed? ..and now i wonder how many times before search engine recognize the hack and put my post title before my blog name? .. tq :)

July 20, 2009 at 12:41 PM
Anonymous said...

find this tutorial useful...
made a bit bit modification to include blogname...
here's the link for the tutorial...

http://hcier16.blogspot.com/2009/07/change-titles-of-blogger-blog-for.html

July 25, 2009 at 9:17 PM
$h@d0w said...

Thanks its very nice

visit my website

http://www.pakddl.com

July 26, 2009 at 11:21 PM Web Development Blog said...

Google and other search engines update their index on regular basis. All post titles for my blog were updated in the search results gradually. It took about two months though.

I suggest that you stick with your revised title tags and wait patiently. Try pinging search engines and submitting updated sitemaps.

July 28, 2009 at 8:42 AM Dieorfly said...

This was really helpful. It works well.

July 29, 2009 at 6:52 AM adam gibbons said...

Nice work, been wondering how to do this, found you through digital point forums so i am very relieved. I liked the hack so much i have added a link to your post to direct others to here i how you dont mind. Adsense and SEO blog

July 31, 2009 at 6:37 PM Guitar Lessons Reviews said...

Wicked, this was just what I was looking for. Does anyone know whether you can adjust the meta description for each individual post in Blogger like you can in Wordpress using the All In One Seo plugin?

August 1, 2009 at 1:09 PM Meredith Self said...

Hi Amanda, great post.

does this work for blogger classic, too?

(i think it's time for me to research switching to the new blogger layouts.)

thanks!

August 10, 2009 at 10:19 AM porno said...

Thank you very much for this information.

August 13, 2009 at 11:01 AM Sameer Arshad said...

Great trick....im gonna apply it to my blog

http://lets-kickoff.blogspot.com/

August 16, 2009 at 1:43 AM Minter said...

Year and a half later and the tip works a treat. Thanks Julian ... clearly I am one of those knuckleheads too! As Julian says:

You need to replace the entire line, including the surrounding < title > < /title > tags, with the code Amanda gave above, otherwise they show up in your browser titlebar.

September 3, 2009 at 3:51 AM Anand Jage said...

Terrific... but as minter said...
we need to replace entire line including the title opening and closing tags..
Thanx any way...

September 5, 2009 at 4:49 AM troy said...

thks for the tips .... its very useful .... :)

September 16, 2009 at 7:59 AM Claudiu Constantin said...

i don't find the code data:blog.pageTitle in my template. What can i do to implement this hack ?

September 18, 2009 at 12:59 AM Sbagyo said...

thnx for this hack....i have applied this to my
blog.. check my blog
http://sbagyo.blogspot.com
best for u amanda.

September 24, 2009 at 6:16 AM mutuelle santé said...

thanks! i finally will be able to do it!

Post a Comment