From this answer, I have the following after my <body>
:
<a name="Pagetop"></a>
In my footer, I have:
<script>
jQuery(".pgtop").click(function() {
jQuery('html, body').animate({
scrollTop: jQuery("#Pagetop").offset().top
}, 2000);
});
</script>
<p class="pgtop"><img src="<?php echo get_stylesheet_directory_uri() ?>/images/up-arrow.png" alt ="Go to top of page" title ="Go to top of page" width="50" height="29" border = "0" ></p>
but the scroll to top does not work on this staging site.
Help appreciated.