Display a Blog List as a Static Page in Blogger

Blogger was created to provide an easy way for anyone to create a blog within a matter of minutes. You don’t need to know HTML or CSS to write and publish posts on a Blogger blog, since the user inteface, and templates, do it all for you. While you can edit the code, if you wish, for most people it is easier to simply add gadgets and move them around.

With this ease of use comes some restrictions, such as not being able to create pages that execute code. I have managed to provide alternatives to getting around several restrictions, and today I will discuss another alternative – displaying a blog list as a static page. Doing something such as this was asked a little while ago in my comments, and while I provided a quick reply, I decided to provide a more thorough solution.

A Blog List Post

blogger logo 370x368 300x298 Display a Blog List as a Static Page in Blogger

As with many Blogger solutions I have created, this one involves using a blog post to display a blog list gadget. While you can’t add a gadget to a blog post, you can make it look like you did with some creative editing.

  1. Log into your Blogger account and create a new post.
  2. If you have already created static pages in the past, then do the same for this post. If you haven’t created static pages, then follow the instructions to create a static page in Blogger.
  3. Enter a title for the page, but don’t enter any content for the page. The content will come from a blog list gadget, which you will see later.
  4. Click the “Post Options” link at the bottom to display additional options.
  5. Under “Reader comments”, select “Don’t allow”. The reason we don’t want comments is because they will disrupt the layout of our blog list page.
  6. blog list post Display a Blog List as a Static Page in Blogger

    Blogger Blog List - Post Settings
    (Click to enlarge.)

  7. Click the “Publish Post” button at the bottom to save the post.
  8. View you new blog list post, and copy the URL from the address bar. We will need this URL later, so keep it handy.
  9. Next, click the “Layout” tab at the top of the page.
  10. Click an “Add a Gadget” link in the page element layout and then scroll down the list and click the plus sign next to “Blog List”.
  11. Clear the “title” option so there is no text in the edit box.
  12. Edit the remaining options to your preference as everything else won’t effect how to display the blog list.
  13. configure blog list Display a Blog List as a Static Page in Blogger

    Blogger Blog List - Configure Blog List Gadget
    (Click to enlarge.)

  14. Once you have changed the options, and added blogs to the list, click the “Save” button to add the blog list to your layout.
  15. Back at your blog’s page element layout, drag the “Blog List” gadget so it appears directly below the “Blog Posts” gadget. Since your blog list post contains no text, just a title, the blog list will be displayed directly under your post title.
  16. blog list gadget placement Display a Blog List as a Static Page in Blogger

    Blogger Blog List - Location of Blog List Gadget
    (Click to enlarge.)

  17. Click the “Save” button to save your current layout.
  18. Now we will need to edit some code. Click the “Edit HTML” option at the top of the page.
  19. Check the “Expand Widget Templates” checkbox to view all the HTML code for your template.
  20. Search for “bloglist” until you find a line similar to:

    <b:widget id='BlogList1' locked='false' title='' type='BlogList'/>

  21. Below the line shown above, you will find an includable line. Right after that line we need to include the following:
    <b:if cond='data:blog.url == "[URL of your blog list post]"'>

    so it looks like:

    <b:includable id='main'>
      <b:if cond='data:blog.url == "[URL of your blog list post]"'>

  22. Now we need to close the if statement, so scroll down, until you find:

    </b:widget>

  23. Directly above that line is the end of the includable tag, which you should preceed with the closing if tag, like so:

      </b:if>
    </b:includable>

  24. When the changes have been made, click the “Save Template” button to save your template. If all goes well, when you view your blog list post, you should see a static page that displays only the post title with the blog list gadget.

For an example of what a blog list page looks like, please check out the blog list static post on Blogger to the Limit.

The above steps provides a compromise to those that want to display a static blog list page on a Blogger blog. The steps simply create a blank post that will only contain a title. Since there is no content, the blog list gadget will displayed flush up against the post title, which is what we want.

Next we change the blog list gadget code to only display the contents of that gadget when the URL is the same as the blog list post URL. This prevents the blog list from displaying on any other page or post on the blog.

One final note, the reason we disable comments on the blog list post is because the comment box is part of the blog posts gadget. This means that if it wasn’t disabled, the page would display the title, followed by the comment box, and then the blog list. This, obviously, won’t look good so we disable the comments.

You may also like:

Blogger Logo

How To Easily Display a Blogroll on Blogger

Blogger Logo

A List of Common Tags in a Blogger Blog Post Header

Blogger Logo

Hiding Static Pages from Main Page in Blogger

Blogger Logo

How to Display Recent Post Titles in Blogger

21 people had something to say about “Display a Blog List as a Static Page in Blogger”:

Comments


  1. Hi Paul,

    Thanks a lot for your wonderful site. I am new to blogger and am tweaking my blog layout to make it a little more presentable. I must say your site provides excellent information in the best presentable manner.

    As you know blogger allows one to make pages. I followed the steps you mentioned very carefully but somehow the page I have now published has no blog lists. The blog list as shown in the layout snapshot you have provided is same as what my layout page currently looks like. I have left the page as it is for now. I will only remove it once if you could suggest me a way to post my blog list in the page.
    For you kind information I am using Intense debate comment widget. I have disabled basic blogger comments form. Please let know if I need to provide any more details.

    Kindly guide me as in where I need to make amends.

    Thank you very much,
    Naresh


  2. Hi!! I did like you said….and I repeat 3 times, but when I close de tag, de blog list desapears


    • Which tag did you close that caused the blog list to disappear?


  3. I did all the steps…. and when I put the if tag above the includable tag , the blog list disappeared


    • Does the blog list gadget still exist in your template, or has the gadget gone too?


  4. the gadget exist, but doesn’t appear


    • That would mean your “if” statement is preventing the blog list from appearing. Ensure you have copied the URL of the post properly in step 18.


  5. I wonder is this page can be submit as sitemap? Thx buddy for sharing this.
    Sophie Martin recently posted…Daftar Alamat BC Sophie Martin di KotamuMy Profile


    • Probably not, as sitemaps are usually a specific formatted XML or RSS feed.


  6. Hi. I’ve tried a few times but the codes didn’t seem to work and I don’t where I did wrong. I mean I followed your every step. Maybe there is something there that I don’t really get like the part where I have to put the URL of my blog list post. Could you kindly show me how should the URL looks like?


  7. Hello,,

    Thanks for putting this out here, I’ve been able to do this except I cannot get it to not show the blog list at the end of the post…I’ve added the page URL but it still wants to show the list on the main page..what can I do to fix this??

    thanks
    Ronda
    Ronda Tedder recently posted…Tabby CatMy Profile


  8. I have been playing with this on my test blog. Thanks for sharing the hack. My only question is – how do I get the post footer to not show up before the blogroll?
    Jess recently posted…Food for Thought- AngieMy Profile


    • I have the same question too.


  9. i really enjoy this, thanks for sharing this information.



  10. thanks paul


  11. I tried to do this but when I previewed my page the gadget had disappeared from the bottom but the page was still listed as a page. any ideas what could have gone wrong?

    Also, will the page be added to the list of pages that go across the top of my blog under the title, or somewhere else on the page?

    Also, just as a suggestion, is there any chance you could change the type (bold/colour) of the elements that need to be changed in the code (such as the ‘insert url’)? I missed this first time round.

    Thanks for a great blog!


  12. *listed as a post (not page)


  13. Hi Paul,

    Thanks for this tutorial. Helped me a lot.


  14. Thank you so much for this tutorial. I just followed your instructions and got my blog list as a tab for my blog.
    NiseyKnits recently posted…Yinka’s ScarfMy Profile

Do you have something to say? Let everyone know!

Commenting policy: All comments are moderated for spam. You must use your real name and not your website name or keywords. If a comment is deemed to be spam, then it will be deleted or edited. Links to your website within the comment body is not permitted, but you are free to use CommentLuv to add a link to your latest post. If you wish to add a link to your website, you can always contact me about submitting a guest post.






CommentLuv badge
This blog uses premium CommentLuv which allows you to put your keywords with your name if you have had 5 approved comments. Use your real name and then @ your keywords (maximum of 3)

Previous Post:

Next Post: