Monday, August 17, 2015

How to make blog archive as a blog page

We can only have our blog archives as a widget in sidebar. This is by default. If you have been in blogging for quite a long time and your blog contains quite a good number of posts, this facility goes beyond track of what we wanted. Our sidebars get stretched unnecessarily. 
  
  
Therefore, it would be quite nice and professional if we can make archives as one of our pages. Readers can click on that tab to get all the titles of all the posts till date on one page. This not only gives professional looks for our blogs but also shortens the length of our sidebar.

It's very easy to have this in your blog. There aren't anything much to be done. Just follow the following steps: 
  1. Login to your blog
  2. Click on Pages 
  3. Click on New Page
  4. Give the title i.e may be Archives
  5. Click on HTML
  6. Delete all those codes present there
  7. Copy this given code and paste it 
  8. <div dir="ltr" style="text-align: left;" trbidi="on"><script src="http://cloud.github.com/downloads/jhwilson/Create-a-Blogger-archive-page/Make-Blogger-Archive-Page.js" type="text/javascript">
    </script>
    <script src="YOUR BLOG URL/feeds/posts/default?max-results=500&amp;alt=json-in-script&amp;callback=LoadTheArchive">
    </script></div>
  9.  In above, you can find YOUR BLOG URL, replace it with your blog's URL 
  10. Once replaced, click on Publish
  11. New page with title (Archives) will appear in your blog
If you want to display all the posts till date to your readers, this serves better option. It also displays post dates, time and years for every post including post titles. Hope you got it right. Cheers!

No comments:

Read our comment Policy to know your rights & responsibilities before actually leaving a comment for this article.

Related Posts Plugin for WordPress, Blogger...