SSL Labs Score

Log in to participate

There is no cost to join RicheyWeb, and membership is a requirement to submit bug reports and participate in the support forums.

× Extension Discussions

"Back to top" doesn't work with ScriptsDown NEW REPLY

1 year 11 months ago #317 by tehribo
tehribo created the topic: "Back to top" doesn't work with ScriptsDown NEW REPLY

I am using a template called Purity 3

After enabling Scriptsdown, the "Back to top" button stopped working.

This should be the code of the "Back-to-top" script
(function($) {
    // Back to top
    $('#back-to-top').on('click', function(){
        $("html, body").animate({scrollTop: 0}, 500);
        return false;
        // hide button to top if the document height not greater than window height*2;using window load for more accurate calculate.    
        if ((parseInt($(window).height())*2)>(parseInt($(document).height()))) {

Thank you in advance!

Best regards

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Kunena Forum