Last active
May 2, 2024 09:34
-
-
Save mgibbs189/af2bf17c240bf3241d9eb5829bd6a4fa to your computer and use it in GitHub Desktop.
Flatsome - support lazy load images and quick view
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 | |
add_action( 'wp_head', function() { | |
?> | |
<script> | |
(function($) { | |
$(document).on('facetwp-loaded', function() { | |
Flatsome.behaviors['lazy-load-images'].attach(); | |
Flatsome.behaviors['quick-view'].attach(); | |
}); | |
})(jQuery); | |
</script> | |
<?php | |
}, 100 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment