Created
January 7, 2016 01:25
-
-
Save mgibbs189/d7d3bb3b0d440a21fac7 to your computer and use it in GitHub Desktop.
FacetWP - isotope / image show issue for The7 theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment