728x90 AdSpace

.

Latest News

mardi 14 octobre 2014

How To Add Infinite post loading by Infinite Scrolling for Blogger

Today I will explain you how to create WordPress kind infinite post loading (scrolling) effect on Blogger. This script is originally created by Simplex Design. Infinite scrolling for blog posts in very charming effect with lite loading effect. I’d first saw this effect on my WordPress.com blog from that time I am desiring this effect for Blogger. If you are not able to understand this effect then you should go to you Facebook wall then scroll down page. There you’ll see the auto loading of old wall entries, this effect is called infinite scrolling until it gets your very first post. In my article I am just changing Blogger pageType tag to make your blog faster and responsive against this script. The main benefit using my version will be you’ll able to load infinite scrolling on home page, archive page and search page while this script will not load on your item page and static pages i.e. blog posts and pages. This means your blog will be more responsive and fast.

If you want to understand this infinite scrolling effect on Blogger. You can see the picture below below. In this picture first page show the default page navigation and second one shows the loading of more post on home and archive page when someone scroll down on your blog this means he or she should not require to navigate by click on page numbers or next post – previous post.
Note: This script will work only on default Blogger templates or those are not highly customized template.

Installing infinite post loading script for Blogger

1. Go to Blogger Dashboard › Select Blog › Template tab › Edit HTML

2. Now search for </head> in your template

3. And paste following code on just above </head>

<b:if cond='data:blog.pageType == "index"'>
<script src='//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'></script>
<script src='' type='text/javascript'></script>
<script type='text/javascript'>
jQuery.ias({
    container : '.blog-posts',
    item: '.post-outer',
    pagination: '#blog-pager',
    next: '#blog-pager-older-link a',
    loader: ''
});
</script>
</b:if>

4. If you’re using latest jQuery script you can remove the jQuery code from above code highlighted in red. You should download and upload these files in your own Dropbox or Google Project or Code which are highlighted in green and orange color.

5. Now Save this script (code) in your template

6. Go to your blog’s home page and see the script in action.

If script does not work please load the page else leave a comment, we’ll help you out.

How To Add Infinite post loading by Infinite Scrolling for Blogger
  • Title : How To Add Infinite post loading by Infinite Scrolling for Blogger
  • Posted by :
  • Date : 20:58
  • Labels :
  • Blogger Comments
  • Facebook Comments

0 commentaires:

Enregistrer un commentaire

Top