Hello There,
Apologize for the issue you're experiencing. Please add the following JS code to your Template Options -> Custom Code -> Custom JavaScript
$(document).on('click', '.offcanvas-menu a[href*="#"]', function (event) {
const targetHref = $(this).attr('href');
if (targetHref.includes('#')) {
event.preventDefault();
const hash = targetHref.split('#')[1];
const targetElement = $(`#${hash}`);
if (targetElement.length) {
$('html, body').animate({ scrollTop: targetElement.offset().top }, 500);
}
$('.offcanvas-init').removeClass('offcanvas-active full-offcanvas');
}
});
This should resolve the problem. Please let us know if you need any further assistance!
Best regards