Integration with popup maker

Forums › Forums › Search & Filter Pro › Integration with popup maker

Viewing 9 posts – 11 through 19 (of 19 total)
  • Trevor
    #222724
    This reply has been marked as private.
    Anonymous
    #222736
    This reply has been marked as private.
    Trevor
    #222738
    This reply has been marked as private.
    Anonymous
    #222740
    This reply has been marked as private.
    Trevor
    #222854

    I see the issue now. Do you have the facility in your theme for adding Custom CSS?

    Changing the combobox script to Select2 then needs some custom CSS:

    .select2-container {
      z-index: 9999999999;
    }
    Anonymous
    #222857

    Great Trevor, it works, thanks! I will just have to do some styling.

    However the initial question remains:

    When I select a filter choice on mobile width and click on “Rechercher” the popup closes correctly and I see the results of my search. But if I try to access the popup again on this very same page to change the filter choices and click on “Rechercher” a second time, nothing happens.

    I am aware this is probably due to Popup maker as if it failed to take into account a seconde S&F “submit” action.

    Thanks for your help.

    Trevor
    #222934

    Does the page use Ajax to load the results? If o, you need to re-initialize any JavaScript on that form, like this:

    <script>(function ( $ ) {
      "use strict";
      $(document).on("sf:ajaxfinish", ".searchandfilter", function(){
        console.log("ajax complete");
    
    // call your function here
    
      });
    }(jQuery));</script>
    Anonymous
    #222981

    Thanks Trevor,

    Adding this code to my functions.php file apparently does the job well:

    add_action( 'wp_footer', 'my_custom_popup_scripts', 500 );
    function my_custom_popup_scripts() { ?>
        <script type="text/javascript">
    		(function ( $, document, undefined ) {
      "use strict";
      $(document).on("sf:ajaxfinish", ".searchandfilter", function(){
        console.log("ajax complete");
        PUM.close(32205);  // Change 123 to match your popups ID # from the All Popups screen.
      });
    }(jQuery, document));
        </script><?php
    }
    Trevor
    #222983

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

Viewing 9 posts – 11 through 19 (of 19 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.