Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • erickpaulino Friend
    #197395

    Hello,

    How can I replace the infinite scroll button with an automatic infinite scroll on JA Magz? I would be happy if I could have this working at least on the home screen.

    Thank you!

    Pankaj Sharma Moderator
    #533522

    <em>@erickpaulino 425181 wrote:</em><blockquote>Hello,

    How can I replace the infinite scroll button with an automatic infinite scroll on JA Magz? I would be happy if I could have this working at least on the home screen.

    Thank you!</blockquote>
    For this please go to the templatesja_magzjs/script.js

    find and remove this code
    //we remove autoload
    $(window).unbind('.infscr');

    if(nextbtn.length){
    nextbtn.find('.inf-button').on('click', function(){

    if(nextbtn.hasClass('active')){
    return false;
    }

    if(!nextbtn.hasClass('finished')){
    nextbtn.addClass('active');
    infinity.infinitescroll('retrieve');
    }

    return false;
    });
    }

    it will add the infinite auto scroll .
    Please take a backup of your site before doing any custom changes .

    Let me know if it helps 🙂

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

This topic contains 2 replies, has 2 voices, and was last updated by  Pankaj Sharma 10 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum