Skip to content

Instantly share code, notes, and snippets.

@djrmom
Created August 28, 2019 16:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djrmom/2f88fa1f7b60d68e08408e86f04521d7 to your computer and use it in GitHub Desktop.
Save djrmom/2f88fa1f7b60d68e08408e86f04521d7 to your computer and use it in GitHub Desktop.
facetwp updated isotope for avada
(function($) {
$(document).on('facetwp-loaded', function() {
if (FWP.loaded) { // trigger only after the initial refresh
$blogGrid = $( '.fusion-blog-layout-grid' ); // this to the class or id to apply isotope to
$blogGrid.isotope( {
// options - change these options to match the isotope options in use - https://isotope.metafizzy.co/options.html
itemSelector: 'article',
layoutMode: 'masonry'
});
$blogGrid.imagesLoaded(function() {
$blogGrid.isotope('layout');
});
}
});
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment