Title: Avoid page refresh during filter?
Last modified: March 6, 2021

---

# Avoid page refresh during filter?

 *  Resolved [sarumbear](https://wordpress.org/support/users/sarumbear/)
 * (@sarumbear)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/avoid-page-refresh-during-filter/)
 * Hi
 * I love this plugin but I have a problem which is annoying.
 * When a filter is selected the entire page refreshes and the page scrolls to the
   top. On my design the filter is not at the very top. This makes the filter action
   confusing on small screens as suddenly the filter or the products are out of 
   view.
 * I do not mind much the screen refresh but is it possible for the page to scroll
   to the top after filter?
 * Thank you.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Favoid-page-refresh-during-filter%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Support [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * (@mediawebster)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/avoid-page-refresh-during-filter/#post-14149892)
 * Hello
 * Read this please – [https://products-filter.com/auto-scroll-to-products-top-in-redirect-mode/](https://products-filter.com/auto-scroll-to-products-top-in-redirect-mode/)
 *  Thread Starter [sarumbear](https://wordpress.org/support/users/sarumbear/)
 * (@sarumbear)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/avoid-page-refresh-during-filter/#post-14150391)
 * Thank you. I already tried that trick but it doesn’t stop the scroll it adds 
   a counter scroll to reduce the original scrolls effect. I was hoping there is
   a solution to avoid scrolling like some other solutions out there doing.
 *  Plugin Support [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * (@mediawebster)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/avoid-page-refresh-during-filter/#post-14161037)
 * Hello
 * Ok! Try to use Ajax mode
 *  Thread Starter [sarumbear](https://wordpress.org/support/users/sarumbear/)
 * (@sarumbear)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/avoid-page-refresh-during-filter/#post-14161349)
 * I have tried that mode and it made no difference. I am using Divi, not an obscure
   or untested theme.
 *  Plugin Support [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * (@mediawebster)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/avoid-page-refresh-during-filter/#post-14173168)
 * Hello
 * Ok! Try to add this code:
 *     ```
       <?php if (isset($_GET['swoof'])): ?>
   
           <script>
               jQuery(function ($) {
   
                   setTimeout(function () {
                       $('html, body').animate({
                           scrollTop: $(".woof_redraw_zone").offset().top - 100
                       }, 777);
                   }, 333);
   
               });
           </script>
   
       <?php endif; ?>
       ```
   
 * If no luck – please do not remove this code and add link to the error page
 *  Thread Starter [sarumbear](https://wordpress.org/support/users/sarumbear/)
 * (@sarumbear)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/avoid-page-refresh-during-filter/#post-14173230)
 * Where do you want me to add this code?
 *  Plugin Support [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * (@mediawebster)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/avoid-page-refresh-during-filter/#post-14184322)
 * Hello
 * Read this please – [https://products-filter.com/auto-scroll-to-products-top-in-redirect-mode/](https://products-filter.com/auto-scroll-to-products-top-in-redirect-mode/)
 * This is the same code, just a slightly different selector

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Avoid page refresh during filter?’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-products-filter/assets/icon-256x256.png?rev=
   2844301)
 * [HUSKY - Products Filter Professional for WooCommerce](https://wordpress.org/plugins/woocommerce-products-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-products-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-products-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-products-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-products-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-products-filter/reviews/)

## Tags

 * [page refresh](https://wordpress.org/support/topic-tag/page-refresh/)

 * 7 replies
 * 2 participants
 * Last reply from: [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/avoid-page-refresh-during-filter/#post-14184322)
 * Status: resolved