- This topic has 3 replies, 2 voices, and was last updated 5 years, 11 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 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 › The filtered results doesn’t open in lightbox
Let us assume that there is a function loaded by WP Video Lightbox on document ready using JavaScript/jQuery. The style it adds would be removed by an Ajax refresh of the results section of the page, so the WP Video Lightbox function would need to be loaded again after our Ajax has finished. We have a trigger you can use to do this, but where I have shown a comment in the code snippet, you will need the author of WP Video Lightbox to help you replace that line with their code:
<script>(function ( $ ) {
"use strict";
$(document).on("sf:ajaxfinish", ".searchandfilter", function(){
// call your script or function here
});
}(jQuery));</script>