• Resolved markk26

    (@markk26)


    I’m trying to prevent my website logo from opening with lazy loading, but it’s not working!
    My logo class is site-branding-logo and I added that to my css, in theme->appearance->css:

    function mysite_customize_lazy_images( $blocked_classes ) {
        $blocked_classes[] = 'site-branding-logo';
        return $blocked_classes;
    }
    
    add_filter( 'jetpack_lazy_images_blocked_classes', 'mysite_customize_lazy_images' );

    Is there something I’m doing wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @markk26

    I am glad to help!

    Your code is correct but it should be added to your theme functions.php file, not on the CSS customizer.

    Could you save a copy of your theme file functions.php for backup purposes, then upload a copy with the code added to it, please?

    You can follow the instructions from here, at the item Customizing Lazy Images.

    Let me know if you have any questions.

    My best regards,

    Michelle C.

    Thread Starter markk26

    (@markk26)

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Skip Image Lazy Load’ is closed to new replies.