Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuartduff/54dce62062b44c6aaf27ce8012225728 to your computer and use it in GitHub Desktop.
Save stuartduff/54dce62062b44c6aaf27ce8012225728 to your computer and use it in GitHub Desktop.
WooSlider blacklist Jetpack lazy load images for slides
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