Support » Plugin: Lazy Load - Optimize Images » Not compatible with LayerSlider

  • Resolved e3magazin

    (@e3magazin)


    When I activate your plug-in “Lazy Load by WP Rocket” it does work, but it also destroys the layout of my LayerSlider slides completely. Centered images are shown bound right and things like this.

    How to fix that bug?

    All the best,
    Peter M.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor WP Rocket

    (@wp_rocket)

    Hi,

    LayerSlider has always been something conflicting with lazyloading, it’s not compatible with that.

    The best thing to do is to exclude the images from lazyload, it can be done with the following code:

    add_filter( 'rocket_lazyload_excluded_attributes', function( $excluded ) {
        $excluded[] = 'ls-layer';
    
        return $excluded;
    } );

    Thank you for your answer. Tried that on the big slider on top here: http://www.e-3.de

    But it did not work at all. No reaction by the slider, it is still broken (not at the moment as I disabled lazyload completely again)

    Plugin Contributor WP Rocket

    (@wp_rocket)

    In that case, the solution is to disable lazyload for pages with this slider, unfortunately.

    okay, bad to hear that. this makes the plugin completely useless to us as this site is the one which we needed it for.

    thank you for trying to help

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.