Skip to main content

Classic (HTML) Templates Get A New Lease On Life

As a result from a few (justified) complaints about Auto Pagination and its effects on blogs with classic (HTML) templates, Blogger has released an enhancement which will make classic templates, in general, more usable.

In Creating pagination links on Classic Templates, we see two new options for classic templates.
If you are using Classic Templates and would like to add pagination links to your blog, there are currently two options for setting this up. Both involve adding a snippet of code to your blog's template, which can be done from the Template | Edit HTML tab.

You even have the ability to customise the link caption, with the phrase of your choice, or even a graphic - as you can see on some of my blogs.
  • "<$BlogPaginationLinks$>" (for language automatic, "Older / Newer" captioned links).
  • "<$NewerPosts$>" / "<$OlderPosts$>" (for manually labeled custom captions).

Anybody with a blog with a classic template will enjoy using these options, and especially those with blogs subject to unwanted display segmentation. You may see my initial test, in my Classic Template Laboratory. Here's my implementation, with copious amount of detail removed.
<!-- Begin #main -->
<div id="main"><div id="main2">


<h2 class="date-header"><$BlogDateHeaderDate$></h2>

<!-- Begin .post -->


<!-- End .post -->

<!-- Begin #comments -->



<!-- End #comments -->
<!-- End #main -->

You need to insert the extra code at the very end of the "main" section. Note that precise placement, after the right "</div>", is essential.

You'll note that neither "<$BlogPaginationLinks$>" nor "<$NewerPosts$>" / "<$OlderPosts$>" provides the exact functionality of the links that are built in to designer / layout templates. If you want full functionality, you have to upgrade. Fortunately, since FTP Publishing was terminated, there is no real need to remain with classic templates.

>> Top


Marf said…
That might have been quite useful to me if they weren't doing away with ftp publishing. I've been wanting to host my blog on my own servers, but the lack of Pagination in classic templates is one of the things that had stopped me.

Now that they're doing away with FTP publishing, I don't see much of a reason to use classic templates at all.
Johnny Hoang said…
thanks for posting this. my blog was missing the older/newer button.
Heidi said…
I tried this, in what I think was exactly the right spot and it ended up on the top towards the right of my blog, vs. the bottom. There is only one place in my template referring to the main body, so I don't know how I got it wrong, but I did get it wrong! It's a start though, to have this option. I am not too html savvy so obviously I"m missing something here.
Nitecruzr said…

Getting this code in the right spot, in the classic template code, is a real challenge. It took me half a dozen tries to get it to work, on my demo template.

Just another reason why I like tweaking a designer / layout template so much more.
Heidi said…
I've tried it over 1\2 dozen times myself and NO success. For whatever reason, it ends up at the very top of my side bar instead. Consistently. Any ideas for me to try given it is being pasted into the main body, before the main body ends and the side bar begins- it's truly weird!
Alas, after editing properly and previewing results, I get a "Sorry, the page you were looking for in the blog does not exist".

Popular posts from this blog

Adding A Link To Your Blog Post

Occasionally, you see a very odd, cryptic complaint I just added a link in my blog, but the link vanished! No, it wasn't your imagination.

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?".

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.