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,
<b:if cond='data:blog.pageType == "index"'>
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.

1 comment: