Forums Forums Search & Filter Pro Ajax search results with > divi plugins, Portfolio Posts Pro

Viewing 9 posts - 1 through 9 (of 9 total)
  • Trevor
    #134362

    Ah, if you look at the script part of my setup for Divi, there are two lines that reapply Salvattore. You need some code on the new lines straight after those two lines to reapply the code for your lightbox. You may need to ask the author, something like, ho do I reapply the lightbox after Ajax runs? Show them the script you have so far (my script).

    Anonymous
    #134368

    Thanks, will do!

    Anonymous
    #134776
    This reply has been marked as private.
    Trevor
    #134782

    That is what I said. Whoever replied is saying, you need to reapply the lightbox to these new elements, but I do not know how. If they wrote the script, they should know how.

    Anonymous
    #134797

    Understood. Thanks!

    Anonymous
    #134827
    This reply has been marked as private.
    Trevor
    #134829

    OK, but it gives me a place to look. Tomorrow.

    Anonymous
    #135695

    Thanks Trevor, I’ve contacted Divi support as well, inquiring how to reapply their lighbox after ajax runs, but I don’t think they understood the ask. I’ve resubmitted my ticket, attempting a better explanation and hoping for a better outcome… We will see.

    Anonymous
    #135934

    Hi Trevor just to resolve this thread, Divi gave me the following addition to your code and it seems to be working correctly et_pb_image_lightbox_init($( '.et_pb_lightbox_image'));:

    <script>(function ( $ ) {
    "use strict";
    $(document).on("sf:ajaxfinish", ".searchandfilter", function(){
    console.log("ajax complete");
    var grids = document.getElementsByClassName('et_pb_salvattore_content');
    salvattore['register_grid'](grids[0]);
    salvattore['recreate_columns'](grids[0]);
    et_pb_image_lightbox_init($( '.et_pb_lightbox_image'));
    });
    
    }(jQuery));</script>

    Thanks for your help!!

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