Tuesday, May 08, 2012

Remove blog name from page title in blogger

For websites created using blogger, the blog name gets prefixed to the post title.
This makes the SERP snippet on google look non-optimal.
SERP snippet with blog name prefixed to page title

This can be changed by editing the template of the blog and replacing this line of code,
<title><data:blog.pageTitle/></title>
with
<b:if cond='data:blog.pageType == "index"'>
<title><data:blog.title/></title>
<b:else/>
<title><data:blog.pageName/></title>
</b:if>
Detailed procedure:
1. After logging into blogger.com, Open the "Template" menu and select "Edit HTML"

2. Click "Proceed" and skip the template edit warning message
3. Find the code as highlighted and replace with code given above
After replacing the code, save the template by clicking on "Save template" button
The page titles get modified as below screenshot,
Notice that the blog name is gone from the page title
It might take some time to get updated on the Google index.
Note that this code does not affect the home page title.
Reference:
http://starglider.blogspot.in/2011/11/remove-blog-name-from-title-on-blogger.html

1 comment: