WordPress.org

Ready to get started?Download WordPress

Forums

Infinite-Scroll
[Plugin: Infinite Scroll] Infinite scroll and ajax loaded content (3 posts)

  1. AdrianApan
    Member
    Posted 2 years ago #

    Hello!

    I have been struggling for a couple of day already with a new theme. The website uses ajax content loading (proceeded according this tutorial) and it works fine. As second step I tried to install Infinite Scroll plugin but it didn't work so I implemented it manually. So far so good but here comes my problem.

    If you take a look at the website you'll notice that on the frontpage the infinite scroll plugin it won't even load/work. But moving forward if you navigate to the BLOG section of the website you'll see that the plugin works just fine.

    The theme is based on twentyten with custom adjustments.

    Any help would be much appreciated and I will own you tons of coffee or beer! :-)

    http://wordpress.org/extend/plugins/infinite-scroll/

  2. beaver6813
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Adrian, did you mange to fix this in the end?

  3. AdrianApan
    Member
    Posted 2 years ago #

    Hi, well actually yes, but I had to implement manually infinite scroll and I had to unbind the .infscr every time when the main menu was clicked. Something like:

    $("#AboutContentFilter").click(function(){
    			$("body").load('about');
    			$(window).unbind('.infscr');

    And of course for every menu item. Maybe it's not the best solution but it works (FF, Chrome, Safari - Windows/MAC etc.) The single problem is that the loading time is increased a bit but maybe I will be able to balance it from other elements (images, compressing etc.) or with a quick JS makeover ... Will dig around more when I`ll have some spare time.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic