Installed Infinite Scroll

Infinite Scroll looks like a fun plugin. It almost worked perfectly right out of the box (see my note about WP-FancyZoom). I found it on the Balsaman blog.

Just scroll down to the bottom of the page and the next page should load up automatically. :-)

To make the WP FancyZoom WordPress Plugin work well with Infinite Scroll, I figured out that I have to add the following to the “Javascript to be called” section:

addDOMLoadEvent(setupZoom);

Please tell me what you think of this change!

9 Comments

  1. Ananda says:

    Dear,
    I have troubles too using WP Fancyzoom together with infinite scroll. Fancyzoom isn’t working anymore on scrolled posts. How exactly did you make it work together ?
    Where (in which file) to add this extra line ??

  2. lee says:

    It’s been a while but I’m pretty sure this is where:
    Go to Plugins | Editor | WP FancyZoom
    Do a search for “Header hook”.
    Add a last line to the header hook (and before the section called “The filter itself”) like so:

    echo "<script src='{$fancyzoom_path}adddomloadevent.js' type='text/javascript'>\n";
    echo "<script type='text/javascript'>addDOMLoadEvent(setupZoom);\n";
    }

  3. Ananda says:

    Hi Lee, THX for the reply, but I noticed that these lines are already there…
    Do you have another suggestion ??
    Problem could be theme-related ?? (I use Weaver II)

  4. lee says:

    Hmm, I’m not sure what’s up then. You might want to try using the Infinite Scroll built into WordPress Jetpack. The theme I’m running doesn’t support Jetpack’s Infinite Scroll so I haven’t tried it. Failing that, we can try a couple more things… I can give you my source code for the two plugins. Try Jetpack’s Infinite Scroll first.

  5. Ananda says:

    Lee, I am very sorry but I don’t feel too much about installing WP Jetpack. I’ve been using it 1-2 years ago and got messed up with my WP Stats, and other small annoyments. Also, its a rather heavy pack on which I’ll only use the infinite scroll module. Also don’t know about the theme support…
    Are the other options more complicated ?

  6. lee says:

    I know what you mean about Jetpack. I got it only because it was the only way to keep getting WP Stats updates. And yes, it seems to have a heavy footprint. Though I did a little investigation and saw it isn’t a performance hog for me.

  7. lee says:

    I put my infinite-scroll and wp-fancyzoom in a zip file here:
    http://lee.org/a/fancyzoom-infinitescroll.zip

    Hope it works for you.

  8. Ananda says:

    Dear Lee,
    THX very much for these efforts, but unfortunately it doesn’t work on my site.
    I guess I should try to find support from Weaver II. I like this theme very much and I consider to buy a PRO version. From then onwards I can rely on some aid. Or, do you have one more thing to check ?
    May I ask which theme you are using on your blog ? I can try to find out if it is really theme-related…

  9. lee says:

    I use a hand tweaked version of the Fluid Blue theme. Sorry but I don’t have any other ideas for how to get it working.

    Infinite Scroll is a great feature, I hope you can get it working on your blog.

Leave a Comment

Do not write "http://" or "https://" in your comment, it will be blocked. It may take a few days for me to manually approve your first comment.