Home Forums Tucson Template remove the arrow from the right hand side when scrolling up?

This topic contains 5 replies, has 2 voices, and was last updated by  Support2 1 year ago. This post has been viewed 758 times

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #10025270

    dxs8042
    Participant

    how do I remove the arrow from the right hand side when scrolling up?


    #10025288

    Support2
    Keymaster

    Hello :),

    Add the code below in (js/custom.js):

    var lastScrollTop = 0;
    $(window).on('scroll', function(){
       var st = $(this).scrollTop();
       if (st > lastScrollTop){
           // downscroll code
           $('.scroll-to-top').fadeIn('fast');
       } else {
          // upscroll code
          $('.scroll-to-top').fadeOut('fast');
       }
       lastScrollTop = st;
    });

    Kind Regards,

    Rodrigo.


    #10025293

    dxs8042
    Participant

    still not working, I placed it where you advised and nothing changed


    #10025317

    Support2
    Keymaster

    Hello,

    Please send a online link of your website for us, so we can inspect your code and discover why it’s not working for you.

    Kind Regards,

    Rodrigo.


    #10026583

    dxs8042
    Participant

    remove the arrow from the right hand side when scrolling up. Its the same thing on this forum on the right hand side, just need to remove it please. The previous code didn’t work. the site isn’t live yet


    #10026594

    Support2
    Keymaster

    Hello,

    We made a test here with our last solution and it’s working.
    Please, turn your website live in a test link and share with us, so we can inspect your code and discover why it’s not working for you.
    Probably the reason is a javascript error that is breaking the JS execution.

    Kind Regards,

    Rodrigo.


Viewing 6 posts - 1 through 6 (of 6 total)