Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Add this and below
- add_action( 'wp_head', function() {
- ?>
- <script>
- (function($) {
- $(document).on('facetwp-loaded', function() {
- if (! FWP.loaded) {
- $(window).resize(function() {
- var xVal = $(window).width() < 767 ? 0 : 400;
- facetwp_map.panBy(xVal, 0);
- });
- $(window).trigger('resize');
- }
- });
- })(jQuery);
- </script>
- <?php
- }, 100 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement