Created
May 22, 2018 17:00
-
-
Save djrmom/26c65e3aa5b443de54f7a1aa091f141e to your computer and use it in GitHub Desktop.
facetwp uncode isotope
This file contains hidden or 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 | |
| /** | |
| ** reload isotope for uncode theme after facet refresh | |
| **/ | |
| add_action( 'wp_head', function() { ?> | |
| <script> | |
| (function($) { | |
| $(document).on('facetwp-loaded', function() { | |
| if (FWP.loaded) { | |
| UNCODE.isotopeLayout(); | |
| } | |
| }); | |
| })(jQuery); | |
| </script> | |
| <?php } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment