Saturday, March 3, 2012

Display Post Title Before Blog Title in Blogger for SEO

By default Blogger displays the blog title before post title. For an example <Blog Title>: <post title>.In terms of SEO this is bad. We want to display the post title first and then the blog title. To change the default behavior follow the following steps.
  • Log into Blogger and go the "Design" tab
  • Then click on "Edit HTML" link.
  • Make sure you take a back of your existing template by clicking on "Download Full Template" link and saving the XML file to a safe storage location.
  • Search for the following text in the template.

<title><data:blog.pageTitle/></title>
Then replace the above line in red with the following lines




<b:if cond='data:blog.pageType == &quot;item&quot;'>
<title><data:blog.pageName/> | <data:blog.title/></title>
<b:else/>
<title><data:blog.pageTitle/></title>
</b:if>

Finally save the change by clicking on "SAVE TEMPLATE" button and refresh your blog to see the results

0 comments:

Post a Comment