I have a back-to-top catch at the lower part of each page. It works entirely in a HTML layout yet when I was fostering a WordPress topic it doesn’t work. At whatever point I click on the catch it sidetracks to the list page. In the wake of googling, I discovered a jQuery for it which just chips away at the record page. on different pages, it sidetracks to the file page.
jQuery:
jQuery(document).ready(function ($) {
$('#back-to-top').on('click', work () {
$('html, body').animate({ scrollTop: 0 }, speed);
return bogus;
});
});
Initially, I thought in WordPress, it works equivalent to HTML layout and places the entire substance in single div#page
and makes an anchor tag <a href="#page">button</a>
. tragically, it didn’t work.