How Do I Make the Top Button Scroll in WordPress?

Making the top button scroll in WordPress is a quick and easy task. Simply add the following code to your theme’s functions.php file:

function scrollToTop() { $(‘#top’).css(‘display’, ‘none’); }

If you would like to disable the scrolling altogether, you can add the following code to the same file:

function scrollToTop() { $(‘#top’).css(‘display’, ‘block’); }

Now, if you click on the top button, it will scroll to the top of your page. If you would like to disable scrolling altogether, you can add the following code to the same file:.