Fordson gototop

Fordson gototop

by bruno neves -
Number of replies: 6

Hello,


i installed last beautiful Fordson theme but cannot find the gototop icon.

Can anyone help me please?


thanks

Average of ratings: -
In reply to bruno neves

Re: Fordson gototop

by Chris Kenniburg -
Picture of Particularly helpful Moodlers Picture of Plugin developers
What version of Moodle and Fordson?  

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

In reply to bruno neves

Re: Fordson gototop

by Beat Schweitzer -

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

 

In reply to bruno neves

Re: Fordson gototop

by Chris Kenniburg -
Picture of Particularly helpful Moodlers Picture of Plugin developers

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);
        });
    }
});
In reply to Chris Kenniburg

Re: Fordson gototop

by Beat Schweitzer -

Thank you for the solution, Chris.
Now the button is working!

In reply to Beat Schweitzer

Re: Fordson gototop

by Chris Kenniburg -
Picture of Particularly helpful Moodlers Picture of Plugin developers

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.