WOOF - WooCommerce Products Filter

Auto scroll to products after their filtering in redirect mode

  • Open file functions.php of your current wp theme
  • Find there code: <?php wp_footer(); ?> and drop after it next code:
    <?php if (isset($_GET['swoof'])): ?>
    
        <script>
            jQuery(function ($) {
                setTimeout(function () {
                    $('html, body').animate({
                        scrollTop: $(".woof_products_top_panel_content").offset().top - 100
                    }, 777);
                }, 333);
            });
        </script>
    
    <?php endif; ?>
  • Now after filtering in redirect mode will be scrolling effect as here