• Hi,

    Any idea on how to get the infinite scroll plugin working with masonry? I tried a lot of things with no success.

    The first page loads with masonry correctly but when infinite scroll starts loading new posts, these are showing one below the other, although if if put the callback code in plugin settings.

    I have that code to load masonry:

    <script>
     jQuery( document ).ready( function( $ ) {
      $( '#container' ).masonry( { columnWidth: 320 } );
    });
    </script>

    I’m a bit lost so any help will be appreciated.

    Thanks a lot.

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

Viewing 1 replies (of 1 total)
  • (Hmmm, I don’t think this applies, but fail to find a delete option…)

    If you happen to use Masonry with Isotope, then looking at the Isotope documentation, I had to edit infinite-scroll/behaviors/masonry-isotope.js to change

    $(this).masonry('appended',$(newElements));

    into

    $(this).isotope('appended',$(newElements));

    The above might be a bug in the plugin (as the dropdown suggests it should work for Isotope too); I found your post when trying to find other reports about this.

Viewing 1 replies (of 1 total)
  • The topic ‘Problem with masonry’ is closed to new replies.