
ceesrijken(@cees-cornelisdigitaal-nl)
5 Posts
Customers
Quote from ceesrijken on August 10, 2021, 17:20
I created an ID called "filteredTop" in HTML. Then I added to the Advanced tab of the plugin:
jQuery('html, body').animate({
scrollTop: jQuery("#filteredTop").offset().top
}, 777);
emptied server and browser cache and filtered the products.
But the page stays at the top instead of animating to the ID.
URL: https://moowy.co.uk/product-category/all-products/
Thanks,
Cees
I created an ID called"filteredTop" in HTML. Then I added to the Advanced tab of the plugin:
jQuery('html, body').animate({
scrollTop: jQuery("#filteredTop").offset().top
}, 777);
emptied server and browser cache and filtered the products.
But the page stays at the top instead of animating to the ID.
URL: https://moowy.co.uk/product-category/all-products/
Thanks,
Cees

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on August 11, 2021, 10:54
Hello
You are not using ajax mode
Please read this - https://products-filter.com/auto-scroll-to-products-after-their-filtering-in-redirect-mode/
Hello
You are not using ajax mode
Please read this - https://products-filter.com/auto-scroll-to-products-after-their-filtering-in-redirect-mode/

ceesrijken(@cees-cornelisdigitaal-nl)
5 PostsTopic Author
Customers
Quote from ceesrijken on August 11, 2021, 12:40
Nice!! That works.
But in the manual it says to add the code to "functions.php". I think you mean "footer.php"?
Nice!! That works.
But in the manual it says to add the code to"functions.php". I think you mean"footer.php"?

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on August 12, 2021, 11:15
hello
Yes! But better add it to functions.php and use hook - "wp_footer"
hello
Yes! But better add it to functions.php and use hook -"wp_footer"