Ready to get started?Download WordPress


Slideshow breaks when using Infinite Scroll (9 posts)

  1. jeffreyvr
    Posted 3 years ago #

    First, I love the plugin.

    I'm using it on a page to load a portfolio. However, when the plugin starts loading more projects, the slideshow breaks.

    It seems the jQuery doesn't get passed along anymore. Does anybody have an idea how I could solve this?

    Any help would be great!

    This is the url to the page:


  2. jeffreyvr
    Posted 2 years ago #

    I'm still hoping for an answer... anybody?

    I would really appreciate the help!

  3. jeffreyvr
    Posted 2 years ago #

    To clear things up a bit, this is my loop:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    The javascript used above is only displayed with the first posts, after posts are being loaded the javascript magically disappears.

  4. jeffreyvr
    Posted 2 years ago #

    And here is the Pastebin link:

    Sorry for the spam, I cant edit my previous post.

  5. beaver6813
    Plugin Author

    Posted 2 years ago #

    Sorry for the delay, been real busy.
    Just went to look at the site but it looks like you've been tinkering, I get the error:

    $("#mygallery3085 a.next").live is not a function
    Line 110

    (hint, try jQuery("#mygallery************* )

    Looks like you're along the right lines, you'll either need to use the live hook (so new posts that are loaded will be binded to). Or you can use the "javascript callback" option in infinite-scroll to execute code that will enable the slideshow on all the newly loaded posts.

    I'd probably continue trying to use jQuery's live function, cleanest way to do it. Let me know how it goes or if you need any assistance.

    p.s. Awesome looking site!

  6. jeffreyvr
    Posted 2 years ago #

    Thanks for your reply.

    Could you post an example of the live function? I'm not really familiair with it. I've been trying, but I can't make it work.

    I've deleted my "tinkering", so that you can see the first 3 sliders work.

    Thanks for the compliment btw!

  7. beaver6813
    Plugin Author

    Posted 2 years ago #

    Do you still need help with this? (Sorry for the delay!)

  8. jeffreyvr
    Posted 2 years ago #

    Yes, I still need help.

    Don't be sorry, it's great you even take the time to try and help me!

  9. jeffreyvr
    Posted 2 years ago #

    Sometimes, when you think you're going the wrong way, it turns out you aren't. I used a complete different slideshow script and it saved my day. Finally!

    After that I used the callback function in the plugin to make sure it worked on all sliders.

    Thanks for your support beaver6813!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic