Sunday, April 5, 2009

Swapping Post Title On Blogger

In this post a very good hack has been explained which is quite important from SEO point of view. Title & Description hack has pros and cons. Cons is you will have to write different title for each post. Of course it is bit tedious thing to do. If there are five posts, you got to write five different titles for each five posts which you want to allot different title to. How about giving title to a post-page with a title that you write when writing a post? Exactly like wordpress. You don%u2019t need to write different title for each posts. The title that you write while writing post will be title of the entire post-page.



This hack will do that. Follow below procedures%u2026..

Go to Setting and change your title to a dot

Go to Layout >> Edit Html, tick Expand widget Template

Find code given below

<title><data:pagetitle/></title>
Replace it with%u2026

<title>
<b:if cond=%u2019data:blog.url == data:blog.homepageUrl%u2019>
This is Home Page Title<b:else/>
<data:blog.pageTitle/>
</b:if> </title>

Next find code given below%u2026.

<b:if cond=%u2019data:blog.url == data:blog.homepageUrl%u2019>
<data:title/>
<b:else/>
<a expr:href=%u2019data:blog.homepageUrl%u2019><data:title/></a>
</b:if>
</h1>

and replace it with%u2026..

<a expr:href=%u2019data:blog.homepageUrl%u2019>Your H1 Tag </a>
</h1>

Change the red text as per your requirements. Save the template and you are done.



Comments :

0 comments to “Swapping Post Title On Blogger”


Post a Comment