My site, https://successfulstudent.org is having an issue with … scrolling to top.
The code that does this, see below,
jQuery('.td-scroll-up').click(function(){
if(tdIsScrollingAnimation) { //double check - because when we remove the class, the button is still visible for a while
return;
}
//hide the button
td_scroll_to_top_is_visible = false;
jQuery('.td-scroll-up').removeClass('td-scroll-up-visible');
//hide more articles box
td_more_articles_box.is_box_visible = false;
jQuery('.td-more-articles-box').removeClass('td-front-end-display-block');
//scroll to top
tdUtil.scrollToPosition(0, 1200);
return false;
});
is _not_ working at all. But if I change it to tdUtil.scrollToPosition(0, 0); it works fine. Any help?
Hello mgargano,
I have inspected your website and I saw that your Move to the Top button does not work, sorry! Also, I have noticed that you have minified all of the source code of the theme and maybe, this error comes from here. Please try to update the theme, because maybe your js file has been corrupted and that’s why this button does not work.
Thanks for your understanding!
I turned off the minification, which was *only* CSS. It still does not work. I am using theme files directly from your theme, AFAIK, JS files do not “get corrupted” if you just copy them from a source, they’re literally uncompiled text files.
Please advise!
-
This reply was modified 7 years by
mgargano.
Hi,
Indeed it’s not working on your website for some reason, there are no errors that would indicate a possible conflict. If that modification works, you could do it for the moment and have a working scroll to top button.
Then keep investigating why it happens. Investigate plugins one at a time, code entered in the theme files or theme panel, child theme.
The value in the code you mention should be as it is, there were no changes made in this matter that would cause such problems. I made some tests and it works same as before, no modifications needed.
Thanks