Comments Vlad started the conversationDecember 18, 2017 at 7:20pmHello. I need smooth scrolling to anchor point (orange button). Why "Back to Top" has smooth scrolling? 567Stormit repliedDecember 19, 2017 at 3:23amHi Vlad,You can use javascript to do it. Please read this topic https://stackoverflow.com/questions/7717527/smooth-scrolling-when-clicking-an-anchor-linkPlease note that you may need to change $ to jQuery in the sample code.Best regards,Vlad repliedDecember 19, 2017 at 6:19amwhere i can put this code (for example $('a[href*=#]').click(function(event){ $('html, body').animate({ scrollTop: $( $.attr(this, 'href') ).offset().top }, 500); event.preventDefault(); }); )? in header or body? and how i can do it?I may need to change $ to jQuery so jQuery('a[href*=#]').click(function(event){ $('html, body').animate({ scrollTop: jQuery( jQuery.attr(this, 'href') ).offset().top }, 500); event.preventDefault(); }); 567Stormit repliedDecember 19, 2017 at 8:05amHi Vlad,You can add it to Theme Options > Custom Code tab > Custom Javascript Code field. Yes, you should change $ to jQueryBest regards,Vlad repliedDecember 19, 2017 at 5:57pmthenk you so much!)) Sign in to reply ...
Hello. I need smooth scrolling to anchor point (orange button). Why "Back to Top" has smooth scrolling?
Hi Vlad,
You can use javascript to do it. Please read this topic https://stackoverflow.com/questions/7717527/smooth-scrolling-when-clicking-an-anchor-link
Please note that you may need to change $ to jQuery in the sample code.
Best regards,
where i can put this code (for example
)? in header or body? and how i can do it?
I may need to change $ to jQuery so
Hi Vlad,
You can add it to Theme Options > Custom Code tab > Custom Javascript Code field.
Yes, you should change $ to jQuery
Best regards,
thenk you so much!))