Hi @kunalkothari1810 ,
i tried to add a plugin name : [Forminator Pro] – Fix Scroll Issue from previous forums but it didnt worked well for me.
You’ll have to tweak the existing code of the “Fix Scroll” snippet shared to get this working. As the issue varies from one theme to another.
I couldn’t find any unique class added to any of the sections on your page. Could you please add a unique class name or ID to the following section of your page:
Screenshot at 19:13:17.png
And then update the existing code by adding the class name? ie in the existing code:
jQuery(document).ready(function ($) {
$(document).on("after.load.forminator", function (e, id) {
$(document).on('click', '.forminator-pagination-footer .forminator-button', function(e){
var wpmu_scroll_top = $(window).scrollTop();
if (!wpmu_scroll_top){
$("html,body").stop();
}
});
});
});
You’ll need to update the following line:
var wpmu_scroll_top = $(window).scrollTop();
To the class name, suppose the class name is “scroll-fix-top”, then the line will change to:
var wpmu_scroll_top = $('scroll-fix-top').scrollTop();
Could you please check and see whether that helps?
Looking forward to your response.
Kind Regards,
Nithin