krwi
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Smooth scrolling not working in Our FocusBecause there is no any support from devs I make some “dirty hack” by myself:
In zerif.js script I changed line 159:
jQuery('#site-navigation a[href*="#"]:not([href="#"]), header.header a[href*="#"]:not([href="#"])').bind('click',function () {
to:
jQuery('#focus a[href*="#"]:not([href="#"]), header.header a[href*="#"]:not([href="#"])').bind('click',function () {
This brings back smooth scroll effect in Our Focus widgets.Ok, I figured out that smooth scroll effect is provided by zerif.js script (so what is the purpose of smoothscroll.js with a checkbox in the customizer?). To disable this code I override zerif.js script in child theme with commented out “Smooth Scroll” section. After I do it, jQuery Smooth Scroll plugin works as expected. I hope that this bug will be fixed in the next release.
So there is no help for such major bug?
After some more testing I find that smooth scrolling effect works only with links in main menu and big title section. Not working at all with any links in widgets or text areas in rest sections.
So I decided to install external smooth scrolling plugin (jQuery Smooth Scroll) but “Disable smooth scroll” checkbox in General Options is broken too and has no effect what leads to interference between them (what results with “bouncing effect”).
Surprisingly I can’t disable this native effect even by hashing script loading line in functions.php or even deleting smoothscroll.js file.
So now I have no idea from where this function came from.
Can you provide me some hints how to disable native smooth scroll effect to allow to work external plugin?