• I’m working on a site that is using smoothstate.js to animate between pages (which is working no problem).
    I need to know how to reinitialise the infinite scroll once I navigate to a new page? I know how to do this with my own code, that’s not the problem, I’m just not sure what functions to call or what to do for this plugin.

    Thanks,
    Dean.

Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi Dean,
    you can use this jQuery code to re init infinite scrolling script.

    // reset
    if( typeof yith_infs != 'undefined' ) {
        jQuery( window ).unbind( 'yith_infs_start' );
        jQuery( yith_infs.contentSelector ).yit_infinitescroll({
            'nextSelector'      : yith_infs.nextSelector,
            'navSelector'       : yith_infs.navSelector,
            'itemSelector'      : yith_infs.itemSelector,
            'contentSelector'   : yith_infs.contentSelector,
            'loader'            : '<img src="' + yith_infs.loader + '">',
            'is_shop'           : yith_infs.shop
        });
    }

    Let me know, regards. ??

Viewing 1 replies (of 1 total)
  • The topic ‘How to reinitialise Infinite scroll on Ajax-ed site’ is closed to new replies.