thanks for the suggestion, I will use this for now, but I am concerned that editing a file in the parent theme may be problematic in the long term because updating the theme may overwrite those files.
Is there a solution to this without affecting the parent theme files?
Hi, I have an accordion on the website (URL included), and whenever I clicked an accordion, it will automatically scroll.
I find that functionality pretty annoying. How can I disable the auto scrolling for accordions?
Thanks!
Hello again,
Remove this line from the customjs.js :
1185 to 1187
j$('html,body').animate({
scrollTop: target.offset().top-h_height
}, 1000);
This will remove the scroll functions.
Best regards
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme
Ok I will try that, thanks!
Hi,
thanks for the suggestion, I will use this for now, but I am concerned that editing a file in the parent theme may be problematic in the long term because updating the theme may overwrite those files.
Is there a solution to this without affecting the parent theme files?
Thanks!
Hello,
Yes, you can use our child theme and de-register the customjs file and register it again from your child theme
then
Make sure to copy the customjs.js in the js folder of your child theme.
This should do the trick!
By the way, make sure to use the latest version of the theme or you will have conflict error with the latest version of WordPress.
Do not hesitate to contact us if you have more questions.
Have a nice day!
Best Regards.
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme