Created
January 30, 2018 01:32
-
-
Save mgibbs189/c0208a0062f631a5f5f31128a0671dc5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Add to your (child) theme's functions.php | |
| add_action( 'wp_footer', function() { | |
| ?> | |
| <script> | |
| (function($) { | |
| $(document).on('facetwp-refresh', function() { | |
| if ('undefined' !== typeof FWP_MAP) { | |
| FWP_MAP.is_filtering = true; | |
| } | |
| }); | |
| })(jQuery); | |
| </script> | |
| <?php | |
| }, 100 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment