Hi there,
Thank you for reaching out. Please follow the instructions.
- Download the smoothscroll.js file & place it on this file location
smooth-scroll.js.zip
templates/shaper_helix3/js/smooth-scroll.js
- You have to include it inside the template index.php file.
templates/shaper_helix3/index.php
$helix3->addJS('bootstrap.min.js, jquery.sticky.js, main.js, smooth-scroll.js') // JS Files
- Add this code inside the main.js file. https://prnt.sc/-CCCgE-TAwyC
templates/shaper_helix3/js/main.js
if (typeof SmoothScroll !== "undefined") {
var scroll = new SmoothScroll('a[href*="#"]', {
speed: 500,
speedAsDuration: true,
offset: function () {
return $("#sp-header").outerHeight() || 80; // Adjust based on sticky header
}
});
}
Best regards,
Toufiqur Rahman (Team Lead, Support)