FacetWP – isotope / image show issue for The7 theme

mgibbs189

{{gist file=”test.php” lang=”php”}}
<?php

// Goes into functions.php
function fwp_theme_fix() {
?>
<script>
(function($) {
$(document).on(‘facetwp-loaded’, function() {
$(‘.iso-grid’).addClass(‘cont-id-0’).isotope();
$(‘.wf-cell’).addClass(‘shown’);
});
})(jQuery);
</script>
<?php
}

add_action( ‘wp_head’, ‘fwp_theme_fix’, 99 );
{{/gist}}