Skip to main content

Put The Post Title Before The Blog Title

Some blog owners want to have the titles of the posts easier to spot, in search hit lists.

The solution, to them, is to have the post titles appear before the blog titles, in the template header. If you want your blog to have the post title in front of the blog title, this is a simple enough change.

It's best to make this change only affect display of individual pages (when indexed), and posts. Other search hit list entries, such as archive, label, and main page displays, should show the default blog page title - and not confuse the potential readers with irrelevant detail, in the search hit list entries.

This change requires a small amount of extra code, to identify the specific search hit entries, where the display change is appropriate.

It's a simple change.
Since none of the code is blog specific, it's a simple "search and replace" change. A check for page type of "item" is all that you need.

As always, I will advise you to backup the blog template, before and after making this change.

Find the default title code, using "Edit HTML".
Use the Template HTML Editor. Locate
<title><data:blog.pageTitle/></title>
in the template code.

Add 4 lines of code.
Replace
<title><data:blog.pageTitle/></title>
With
<b:if cond='data:blog.pageType == "item"'> <title><data:blog.pageName/> | <data:blog.title/></title> <b:else/> <title><data:blog.pageTitle/></title> </b:if>
And hit "Save template".

The change won't have immediate effect.
Now, wait while your "item" pages (individual pages / posts) are re indexed - and this may not happen, over night. Again, "index" pages (archive, label, and main page displays) won't, and should not, be affected by this change.

The change needs to be selective.
If you click on the label (below) of "Blog Title", you get a label search page, with the pageTitle of "The Real Blogger Status: Blog Title". For label searches, you want the blog title to precede the label name - so, you use "data:blog.pageTitle" (the default).

If you're using Jump Break, to shorten main page entries, this change may have more impact. Blogs which display complete post content in "index" view won't have as much attention paid to the posts in "item" view.

A useful alternative / complement, to the title sequence change, would be well chosen search description meta tags. Proper sizing and wording, of all descriptions and titles, may make your search hit entries more distinctive too.

Comments

Ifinder said…
Excellent

Popular posts from this blog

Stats Components Are Significant, In Their Own Context

One popular Stats related accessory, which displays pageview information to the public, is the "Popular Posts" gadget.

Popular Posts identifies from 1 to 10 of the most popular posts in the blog, by comparing Stats pageview counts. Optional parts of the display of each post are a snippet of text, and an ever popular thumbnail photo.

Like many Stats features, blog owners have found imaginative uses for "Popular Posts" - and overlook the limitations of the gadget. Both the dynamic nature of Stats, and the timing of the various pageview count recalculations, create confusion, when Popular Posts is examined.

Help! I Can't See My Blog!

I just posted to my blog, so I know that it's there. I can tell others are looking at it. But I can't see it.

Well, the good news is you don't have a blog hijack or other calamity. Your blog is not gone.

Apparently, some ISPs are blocking *.blogspot.com, or maybe have network configuration or infrastructure problems. You can access Blogger.com or you can access Blogspot.com, but you can't access nitecruzr.blogspot.com, or bloggerstatusforreal.blogspot.com.

You can't access them directly, that is. If you can access any free, anonymous proxy servers, though, you may be able to access your blog.

Note: You can use PKBlogs with the URL pre packaged. Here is the address of this post (with gratuitous line breaks to prevent the old post sidebar alignment problem):
http://www.pkblogs.com/bloggerstatusforreal.blogspot.com/
2006/07/help-i-cant-see-my-blog.html


And an additional URL, to provide to those suffering from this problem, would be the WordPress version of this post:
ht…