Changing Blogger title for Postpages.

Changing Blogger title for Postpages.

Ashwini Khare - Monday, July 23, 2007 -

In recent, I have changed the title of my blog' home page to Webtalks- Blogging,Online Money Making,Tech Tips wheras the title for Post pages{Itempages}is Post title ~Webtalks. This has given a major boost to my Search Engine rankings.Now the question is How do I have two separate titles for the same blog's homepage and post page.
By default, your Blogger's title on the top left displays your blog title, and if it's in the items page, it'll include your post title as well.eg, Webtalks:Changing Blogger Title for Postpages.By copying the coding from below, you can change the default behavior of the title tag.


Step 1-Goto Blogger Dashboard>>Layout>>Edit Html
Step 2-Backup your template
Step 3-Follow the instructions below

Find this code in your XML template{in header}

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

Now replace it with
<!-- Start Widget-based: Changing the Blogger Title Tag -->
<b:if cond='data:blog.pageType == "item"'>
<b:section id='titleTag'>
<b:widget id='Blog2' locked='false' title='Blog Posts' type='Blog'>
<b:includable id='comments' var='post'/>
<b:includable id='postQuickEdit' var='post'/>
<b:includable id='main' var='top'><title><b:loop values='data:posts' var='post'><b:include data='post' name='post'/></b:loop> ~ <data:blog.title/></title></b:includable>
<b:includable id='backlinkDeleteIcon' var='backlink'/>
<b:includable id='feedLinksBody' var='links'/>
<b:includable id='backlinks' var='post'/>
<b:includable id='status-message'/>
<b:includable id='feedLinks'/>
<b:includable id='nextprev'/>
<b:includable id='commentDeleteIcon' var='comment'/>
<b:includable id='post' var='post'><data:post.title/></b:includable>
</b:widget>
</b:section>
<b:else/>
<title><data:blog.pageTitle/></title>
</b:if>
<!-- End Widget-based: Changing the Blogger Title Tag -->

Further more you can add a very good keyword in homepage's title by just adding Keyword + Blog Title by finding this line in the above code{3rd last}-
<b:else/>
<title><data:blog.pageTitle/></title>
</b:if>

and adding keyword here

<b:else/>
<title> Keyword <data:blog.pageTitle/></title>
</b:if>

this functionality can be used to give you blog homepage title like "make money online with Webtalks!" and post title like "Changing Blogger title for Postpages at Webtalks"

Note- Installing the above code will not change title for Archives Page as well as Labels page

Credits :Widget Based



UPDATE: Looks like blogger team has disabled this hack.For those who have already used it before, no problems except for dragging and dropping your wigets around in Layout section and for those who haven't done this, keep up with the blog, I am working on a new hack.