• Resolved cheekymate06

    (@cheekymate06)


    I want to exclude the main image from jetpacks lazyload since it breaks the theme.

    At the moment i have lazyload disabled since i wasn’t able to get jackpack to ignore the class/div of the image (its the main image on the homepage)

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Hi @cheekymate06

    You can instruct Lazy Loading Images to skip any image by adding the skip-lazy CSS class to an image.

    You can also use jetpack_lazy_images_blocked_classes filter to set additional CSS class names that shouldn’t be lazy-loaded. For example:

    function mysite_customize_lazy_images( $blocked_classes ) {
        $blocked_classes[] = 'my-header-image-classname';
        return $blocked_classes;
    }
    
    add_filter( 'jetpack_lazy_images_blocked_classes', 'mysite_customize_lazy_images' );

    You can see more here: https://jetpack.com/support/lazy-images/

Viewing 1 replies (of 1 total)
  • The topic ‘removing image from lazy load’ is closed to new replies.