Saturday, May 10, 2008 | 34 comments Categories: , , , ,

Change Title for Blogger Post Pages

Now this is going to be real interesting.The default behavior for the Blogger To display the title of pages is to show the Name of Blog first and then the title of post page with a colon ':' in between. There have been attempts by the blogging and tech community to change this using the Blog2 widget hack but now that hack had been deprecated by the Blogger Team. But now we got a surprise in store.


And the surprise came from none other than the Blogger Team. According to their May 9 Updates :
Layouts now has a blog.pageName datum that gives the name of the current page without the “[Blog Name]: ” prefix that blog.pageTitle adds.

So we have got a whiff of life from them.
So now to the Actual Part. How to Change the Title for Blogger Post Pages.
This is the default behavior of blogger:

So we don't need to have that name of Site in starting on the Post Page title as this also has SEO (Search Engine Optimization) aspects that have to be taken care of too.

  • So Goto Blogger Dashboard
  • Go to Layout > Edit HTML
  • Backup your Existing Template
  • Search for the Following code in the HTML part:

<title><data:blog.pagetitle/></title>

  • Now replace that entire part with this code:
<!-- Start of Changing the Blogger Title Tag -->
<b:if cond='data:blog.pageType == "item"'>
<title><data:blog.pageName/></title>
<b:else/>
<title><data:blog.pageTitle/></title>
</b:if>
<!-- End of Changing the Blogger Title Tag -->

Save your Template, and you are done.

Some people like to have their blog's name after the PostPage title like this:
<title><data:blog.pagename/></title>

So in this Code you can add the Blog Title or for that case any keyterm
<title><data:blog.pagename/>keyterm</title>

So replace the Keyterm with your custom words and you are done.
Hope you enjoyed this little Blogger tweak.
Do Comment and To keep yourself updated about Technology Subscribe to our feed

What Next ?

Get updates in your mailbox

Rate this Post - DiggIt!Digg it Del.icio.usBookmark This Page
Leave a Reply

34 comments:

That didn't work for me. Thanks for the info though.

Thanks for reminding... I have rectified that... :) it had an extra quotation mark

Thanx a lot for this tip as i thought that my all page will have the same page title.

Welcome Nikhil, Yea earlier all pages used to have the 'Blog name' added to title always, but now it can be changed.

Great post. Some of the code that's out there doesn't work with newer blogger templates. Thanks!

Thanks a lot Bill, Yea many codes that are available have become obsolete, as the trick that was used by them was deprecated by Blogger team.

Good article, it works for me. Thanks for sharing. Can you share me how to display comment box on post visible, like your blog have.
-
DotNetGuts (DNG)
http://dotnetguts.blogspot.com

Hi DotnetGuts , welcome to CorpseofAttic. Nice that it worked for you :)
The Comment Form you are referring to can be seen here Inline Comments
Also you check out related articles too.

thanks so much! worked perfectly!!!

Thanks a Lot Pinay :)
Hope you like other hacks too.

Great, it worked like a charm...

Check it out here...

http://www.atoztoa.com/2008/12/ripping-off-blog-name-from-blog-post.html

_ATOzTOA
www.atoztoa.com

Great atoztoa that it worked for you...

Nice info. Thanks ATOzTOA for referring this, this is useful, great stuff corpseofattic.

// Jadu

Thanks a lot Jadu...

Yes, its working for me thnaks

Thanks a lot Johnson

It such worthy tips and it will really work. I will follow it.

Excellent! That is exactly I was looking for my blog. Thank you so much.

it is not working in my customized blogger theme. i have installed one customized theme at by blog, while changing the title, it has started showing errors

It's working fine. But I have a problem with my blog. When i google "tomate joyeuse", it shows the date : monday the 26 october and not the title of my blog
How can i solve the problem?

http://tomatejoyeuse.blogspot.com/

Thanks for this tip. I have successfully used it on:

http://about-dog-breeds.blogspot.com/

cheers :)

Thanks for the tip it was just what I was looking for. My page titles look much better now.

Great post. Some of the code that's out there doesn't work with newer blogger templates. Thanks!

Worked for me, thanks, it was driving me nuts!

really it's too nice article in a useful site :)

go ahead and ihope u visit me soon on my blog)

http://bestmobilesview.blogspot.com

please i need to ask u if i wana make title in head of pages of my blog and another title in every article i post it on my blog can i do this or no?!!

so, please visit my blog soon and leave me a comment with your replay

thanks

http://bestmobilesview.blogspot.com

Thanks for such a nice post
i have used and satisfied with it


Thanks Again

Awesome dude. i made it work.. thanks for the great trick.. check mine guys.. http://istyle360.blogspot.com

I am waaaaay late in the game on this, but this has been bugging me for a while on my own blog. Thanks so much for the info!

Works like magic for me! Thanks for info! Changed my blog post titles in couple of minutes.

Just applied it and finally it's changed. I will appreciate you for this.

for my main page
http://akbar-and-birbal.blogspot.com/
i need title to be same

and for this
http://akbar-and-birbal.blogspot.com/2011/07/akbar-birbal-jokes.html

i need another title say "jokeS"

how would i do it.Please tell the exact code

Written by : Anonymous on : Jul 13, 2011, 12:01:00 AM  

and if possible also tell example for meta tags as well

Written by : Anonymous on : Jul 13, 2011, 12:02:00 AM  

one thing I know that the meta title often appears in the search results.

Post a Comment

Use Real names , No Spam or Anonymous Comments (Commenting Policy)
All Comments are moderated