Skip to content

Instantly share code, notes, and snippets.

jQuery(document).ready(function($) {
//* FacetWP Isotope
var fwpScrollToBtn = false;
var $grid = $('.fwpl-layout');
$grid.imagesLoaded(function() {
//* Wrapped in a short timeout function because $grid.imagesLoaded doesn't reliably lay out correctly
setTimeout(function(){
$grid.isotope({
itemSelector: '.fwpl-result',
});