Thursday, January 13, 2011

Blogger Code To Swap Default Title Order

Swapping The Title Order

If you are using Blogger as your free blogging service, then there is a simple quick fix that you can do to better improve the search engine optimization for each of your post pages.  When creating your url address of your individual post pages, Blogger puts your title at the end of the page address.  Ideally you want the title to be keyword rich and placed at the front on the page address.  This will provide better results when your topic is searched for.  To swap this default setting around open your layout and click on edit html.

Find the following code (Control F brings up a page search box)


and replace with:

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

Then save the changes to your template.  Your page titles should now start with your keywords instead of ending with them.  This is not a retroactive change so old posts will still be archived from the old settings.  Therefore doing this as soon as possible is highly recommended.  I just learned this trick yesterday and I really wish I would have known from the beginning of my blogging career.

1 comment:

Moravec said...

Its about time you switched to self hosting isn't it Cold?

If you're delving into SEO, you'll really appreciate the power of plugins like All-in-one-SEO, as well as the features built into the Wordpress backend.

I highly recommend you look into it mate.