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

Popular posts from this blog

Embedded Comments And Main Page View

The option to display comments, embedded below the post, was made a blog option relatively recently. This was a long requested feature - and many bloggers added it to their blogs, as soon as the option was presented to us. Some blog owners like this feature so much, that they request it to be visible when the blog is opened, in main page view. I would like all comments, and the comment form, to be shown underneath the relevant post, automatically, for everyone to read without clicking on the number of comments link. And this is not how embedded comments work.

What's The URL Of My Blog?

We see the plea for help, periodically I need the URL of my blog, so I can give it to my friends. Help! Who's buried in Grant's Tomb, after all? No Chuck, be polite. OK, OK. The title of this blog is "The Real Blogger Status", and the title of this post is "What's The URL Of My Blog?".

Where's The Dashboard?

We see this confusion, a couple times a week, in Blogger Help Forum: How Do I? . Where is the dashboard? In the Classic Blogger GUI, the display which contained the "Blog List" (at the top), and the "Reading List" (at the bottom) was labeled "Dashboard". Many people also called the "Settings" / "Template" screens for the various blogs, linked from the Blog List, the dashboard. The New Blogger GUI has no page with the label - and no links "To The Dashboard". The Navbar (another unlabeled feature) has two links - "Design" and "New Post" - which lead to different dashboard sections, when you are appropriately logged in to Blogger . And, the "B" logo at the far left of the navbar will, similarly, take you to the Blog List / Reading List.