facetwp updated isotope for avada

djrmom

{{gist file=”facet.js” lang=”javascript”}}
(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);
{{/gist}}