Home › Forums › Pro Support › Preserve Masonry when using facets to search posts › Reply To: Preserve Masonry when using facets to search posts
March 26, 2019 at 3:00 pm
#8374
Keymaster
Let’s try one more thing before I go in to check it out:
<script>
jQuery( document ).on( 'facetwp-loaded', function() {
var container = jQuery( '.wp-show-posts-masonry' );
container.imagesLoaded( function() {
container.masonry( 'layout' );
} );
} );
</script>