- This topic has 1 reply, 2 voices, and was last updated 6 years, 2 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Fancybox not loading on images loaded via infinite scroll
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.
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>