Changing of Individual Blog Posts Title

By default, Individual posts are showed in the google search with Title of the site. You can change the title to the individual post's title by doing the folowing procedures.


1) Goto Dashboard

2) Take back up of your blog by selecting Settings -> Export blog

3) Go to Layout > Edit HTML

4) Search for the Following code in the HTML part:


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

Now replace that entire part with this code:

<!-- code for changing blog post title -->
<b:if cond='data:blog.pageType == "item"'>
<title><data:blog.pageName/></title>
<b:else/>
<title><data:blog.pageTitle/></title>
</b:if>
<!-- End of code --> 
Now Save your Template

To append any custom keywords at the end of each posts title, do the following
<title><data:blog.pagetitle/>keyword</title> 
where keyword can be your own key words.

0 comments:

Post a Comment

 
Copyright 2011 Java Online