Forums › Forums › Search & Filter Pro › Elementor Pro | Video Lightbox issue
- This topic has 5 replies, 2 voices, and was last updated 4 years, 10 months ago by Trevor.
-
Anonymous(Private) March 19, 2020 at 10:34 am #237156
Hi. Using SF Pro, selecting a paramenter, Posts get resorted – so far, all good.
When clicking the video lightbox link within one of the posts, the lightbox content gets awkwardly pushed out of the frame.
I´m not a programmer. Any idea how to fix that? Many Thanks, Laurentius
Trevor(Private) March 19, 2020 at 10:40 am #237158Are you able to send me a live link/URL to your search page so I can take a look?
Does this happen only after you make a search (i.e. is it OK before you make a search)?
Can you detail the steps I need to take to see the issue?
Is there an alternative page on your site where I can see what it should look/function like?
Trevor(Private) March 19, 2020 at 11:15 am #237161Ah.
The process goes like this.
Page Loaded, triggers a JavaScript event
document.ready
and then the Lightbox JavaScript will search the completed page for elements with a given property. Often this is a CSS classname. It then applies the Lightbox to whatever is in that element.But, when Ajax refreshes part of the page, that does not trigger that Lightbox JavaScript to do its thing, so the elements are now broken.
Our plugin sends a JavaScript event out to any listening JavaScript, so this is how you fix it. You will likely need the help of the author of the Lightbox plugin, who will need to supply you with what goes in the gap in this script (which you need to place on the page):
<script>(function ( $ ) { "use strict"; $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ // call the Lightbox function here }); }(jQuery));</script>
-
AuthorPosts