Scroll to top after filter click
-
Hello,
which js file and function handles the jquery scroll to top after filter click? I want to change the code to move to a specific div ID after filter click.
Thank you.
BR
Hello,
The following two files are responsible for scroll to top after filter click:
functions.php
Path :woodmart\inc\functions.php starting from line# 542
Screenshot: https://jmp.sh/i4OeUZG
functions-base.js
Path: woodmart\js\functions-base.js starting from line # 20290
Screenshot: https://jmp.sh/sfjbBUI
Best Regards.
Hello,
this works great for the Scrolltotop button on the bottom of the page. But my filter in my hidden sidebar is not affected.
This must be some other function for event after filter click?
BR
Hello,
I’m glad that it works for your Scroll Top button.
If you want to modify the functionality of “Scroll to top after AJAX” you have to find the function exist in those 2 files. As I already shared the path of those files.
To customize the functionality of scroll to top after ajax requires customization and this is beyond our limitations and support policy.
You have to find that specific function from those files and Customize it by yourself or hire a developer.
Best Regards.
Hello,
I found it my self, here for other looking for the same
Search the function
“var scrollToTop = function (type) {”
in “js/functions.js”
Hello,
Sound’s Good!..
You are the best :-)
Thanks for sharing the solution on the Forum, Surely it will help other people’s as well, who will look for the same..
Let us know if there’s anything else we can do for you! You can always reach us at any time. We are always here to help you.
Have a wonderful day.
Topic Closed.
Best Regards.
The topic ‘Scroll to top after filter click’ is closed to new replies.