Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Integration with popup maker

Viewing 9 posts - 11 through 19 (of 19 total)
  • Trevor Moderator
    #222724
    This reply has been marked as private.
    Nicolas Lorach
    #222736
    This reply has been marked as private.
    Trevor Moderator
    #222738
    This reply has been marked as private.
    Nicolas Lorach
    #222740
    This reply has been marked as private.
    Trevor Moderator
    #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;
    }
    Nicolas Lorach
    #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 Moderator
    #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>
    Nicolas Lorach
    #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 Moderator
    #222983

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

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

The topic ‘Integration with popup maker’ is closed to new replies.