Fancybox not loading on images loaded via infinite scroll

Forums Forums Search & Filter Pro Fancybox not loading on images loaded via infinite scroll

Tagged: ,

Viewing 2 posts – 1 through 2 (of 2 total)
  • Anonymous
    #235363

    I see that there is some discussion here already re: getting fancybox to recognize content loaded via infinite scroll, however I can’t quite make heads or tails of the solutions and i think some of it is private. Either way – hoping someone can point out how to take the suggestion by the plugin author here: https://wordpress.org/plugins/easy-fancybox/#how%20can%20i%20make%20ajax%20loaded%20content%20be%20seen%20by%20fancybox%20%3F

    and provide a filter / function to tie that in with S&F.

    Any help appreciated.

    Trevor
    #235381

    I am assuming that the content loaded on the initial page loads works OK. This script snippet might work:

    <script>(function ( $ ) {
      "use strict";
      $(document).on("sf:ajaxfinish", ".searchandfilter", function(){
        jQuery(document.body).trigger('post-load');
      });
    }(jQuery));</script>
Viewing 2 posts – 1 through 2 (of 2 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.