Forums Forums Search & Filter Pro Embed shortcode problems after wordpress update

Viewing 3 posts - 1 through 3 (of 3 total)
  • Trevor
    #188459

    This is complex. WordPress is doing its stuff, as is Search & Filter. I suspect your theme is injecting the class on to the <p> and also adding the inner span.

    It may be doing so via a function that detects the iframes and does it from there. We have a boilerplate javascript that will enable you to run this code again after the ajax refresh, but I do not know what the code is that is being used.

    Anonymous
    #188505

    OK, then can you please help with this. If I locate the injecting javascript function, how would you suggest I call it? Does your plugin have an after AJAX reload hook?

    Trevor
    #188591

    This is the basic script (into which you add your code):

    <script>(function ( $ ) {
      "use strict";
      $(document).on("sf:ajaxfinish", ".searchandfilter", function(){
        console.log("ajax complete");
    
    // call your function(s) here
    
      });
    }(jQuery));</script>
Viewing 3 posts - 1 through 3 (of 3 total)