2010-06-23

Blogger Page Title Hack

If your Blogger blog posts come up in search engines as "My Wonderfully Great Blog: Name of my post that...", it's being cut off where it matters! It's better to have the post name first, and your blog site name after, so that search engine results don't chop off the most specific part describing your blog post.

To change that in Blogger, go to your Settings tab and click on Edit HTML. Then replace:

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

with:

<b:if cond="data:blog.pageType != "item"">
    <title><data:blog.pageTitle/></title>
<b:else>
    <title><data:blog.pageName/> - <data:blog.title/></title></b:else></b:if> 
 

Then your blog post page title will now be: "Name of my post that doesn't get cut off - My Wonderfully Great Blog."

No comments: