Forums Forums Search & Filter Pro The filtered results doesn’t open in lightbox

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #241552

    Hi again,
    I am using the plugin WP Video Lightbox to show filtered results. The lightbox open correctly if I don’t apply any filter, but if I apply any filter the lightbox doesn’t open.

    What can I do to solve this problem?

    Thanks in advance.

    Trevor
    #241576

    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>
    Anonymous
    #241582

    Oh, thank you I found this part in WP Video Lightbox. It works!!

    Trevor
    #241584

    Thanks for letting me know. I will close this thread for now.

Viewing 4 posts - 1 through 4 (of 4 total)