Last active
May 8, 2018 16:33
-
-
Save stuartduff/54dce62062b44c6aaf27ce8012225728 to your computer and use it in GitHub Desktop.
WooSlider blacklist Jetpack lazy load images for slides
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
function wooslider_lazy_exclude( $blacklisted_classes ) { | |
$blacklisted_classes = array( | |
'skip-lazy', | |
'gazette-featured-content-thumbnail', | |
'post-image', | |
); | |
return $blacklisted_classes; | |
} | |
add_filter( 'jetpack_lazy_images_blacklisted_classes', 'wooslider_lazy_exclude' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment