WordPress.org

Ready to get started?Download WordPress

Forums

Infinite-Scroll
Infinite Scroll stopped working (2 posts)

  1. bheadrick
    Member
    Posted 2 years ago #

    I had this plugin working beautifully for a few weeks, and then it stopped working. I assume it stopped after some update I made to the theme, but I can't figure out what. I've also tried disabling any other plugins I can afford to disable. (I have a separate dev site for troubleshooting purposes)

    Obviously, I know how to set it with the proper selectors - the content hasn't changed, so that's not an issue, but for some reason, it appears that the javascript for the plugin isn't being loaded.

    Not only is it not working on the front end, but The tabs on the admin panel aren't working. I get an error in the js console:
    Uncaught TypeError: Object [object Object] has no method 'infinitescroll'

    version: 2.0b2.120226
    url: http://dev.showtimecaraudio.net

    This is a custom theme built on top of the latest Roots Framework.
    The live site has more plugins, but on the above site, I only have the following enabled:
    Infinite Scroll
    Advanced Text Widget
    Ozh admin drop down menu
    recent searches widget
    Woocommerce v1.5.6

    The selectors I'm using are:
    ul.products and .products div.product

    http://wordpress.org/extend/plugins/infinite-scroll/

  2. bheadrick
    Member
    Posted 2 years ago #

    OK, found the problem, not sure why it's a problem, though:
    (I had recently added this to my functions.php)

    function _remove_script_version( $src ){
    	$parts = explode( '?', $src );
    	return $parts[0];
    }
    add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic