Tag Archives: change title template

Change blogger’s title template

First, why would I want to change the title template?

Good question, let me answer it with another question. When you search the internet (be it with Google or DuckDuckGo) and see a result, what is the first part of the title you read? The first part of the title of course! So, would you want the name of your blog first or the name of your post first?

If you look at the title of this post (yes I know I’m not using blogger) you will see that I have the post name and then the site name.

Change blogger's title template | PC Thingz

When someone sees that they know from the start that its about “changing blogger’s title template” however if you have it formatted as “Blog Title | Post Title” then it will show as follows:

PC Thingz | Change blogger's title template

Though knowing your blog name is important, the user just wants to find what they are looking for. It may not seem like much, they only have to read two words, but they want to find their content as fast as possible, and it may “help” them click on your post. (Tell me the truth, what one would you rather click?)

Changing the title template

This is the part where I tell you what to do. In your blog overview, click on template.


Blogger’s blog overview page

Then, there should be a button underneath the live preview on your blog labelled “Edit HTML”. Click that, and find the part that says <title><data:blog.pageTitle/></title>. Delete the entire “<title><data:blog.pageTitle/></title>” out of the code and insert the following code:

<b:if cond='data:blog.pageType == "item"'>
<title><data:blog.pageName/> | <data:blog.title/></title>
<title><data:blog.pageTitle/></title> </b:if>
code highlight

The part you need to replace is highlighted in blue (Click to enlarge)

What does the code do?

The code you have pasted into the template will find out if the user is viewing a post or the main page. If the user is viewing the main page then it just display the blog title, if the user is viewing a post then it displays the title in the “Post Name | Blog Name” format.
(instead of the default “Blog Name: Post Name” format)

You’re done!

You have now set up blogger to display the title in a more user friendly and search engine friendly way! This won’t bag you millions of views, but people will like the look of your links more!

PS: Your search engine result will not update until the web bots visit your website again.