Hello,
i installed last beautiful Fordson theme but cannot find the gototop icon.
Can anyone help me please?
thanks
At one time there was a setting to turn that on/off but in recent versions it is just on. It should just be there. Have you tried clearing Moodle Cache and then forcing a re-load of the page using CTRL + F5 (which will reload cache in your browser).
Chris
Hello,
I have the same issue. I am using the latest Moodle Version (3.6.2+ / Build: 20190118) and Fordson v3.6 release 1.2 (2019111000). Cache cleaned and reloaded. No effect.
The button is there and is working but it is not visibale. The console says opacity is 0. Increasing it turns the button visible.
If helpfulI can give you access to the server to investigate.
Best regards,
Beat
OK. I can now see this issue. I will investigate.
We have a solution and it will be in a new release. If you want to fix your site now use this.
Go to fordson/javascript/scrolltotop.js and replace the entire code with this:
$(document).ready(function() { if ($('#back-to-top').length) { var scrollTrigger = 200, // px backToTop = function () { var scrollTop = $(window).scrollTop(); if (scrollTop > scrollTrigger) { $('#back-to-top').addClass('show'); } else { $('#back-to-top').removeClass('show'); } }; backToTop(); $(window).on('scroll', function () { backToTop(); }); $('#back-to-top').on('click', function (e) { e.preventDefault(); $('html,body').animate({ scrollTop: 0 }, 700); }); } });
Thank you for the solution, Chris.
Now the button is working!
Glad to hear it and thanks to all for reporting the issue.
A new update to Fordson 1.2 that fixes a few bugs - including this one - was just pushed up to the Moodle repository.