Support » Plugin: Simple Lazyload » Possible option to not lazyload images that has a class name

  • Resolved dangleraction


    I will have to write a review on your plugin, because it is the best Lazy Load Image plugin out there! And since you decided to make it a stand alone WordPress plugin, without the need to enqueue scripts, it really is that simple. Thank you.

    But if I could request one thing, it would be the option to not load your plugin script at all on a specific page or to skip images that have a specific class. Some other plugins of this type offer you that control.

    I have an image slider, and although I’m sure I can implement your plugin to work with it, I really just the slider to do it’s own thing.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I had upgrade Simple Lazyload plugin to be able to custmize lazy load scope.

    Two features has been added to this plugin:
    * upgrade: add ‘simple_lazyload_skip_lazyload’ filter, use this you can customize lazy load scope.
    * upgrade: add lazy load switch for images, when an image contains ‘skip_lazyload’ class or attribute, it will no longer be lazy loaded.

    For example, if you want homepage don’t use lazy load, you can add a add_filter in functions.php of current theme. Here is the code:

    add_filter(‘simple_lazyload_skip_lazyload’, ‘simple_lazyload_skip_lazyload_func’);
    function simple_lazyload_skip_lazyload_func($skip_lazyload) {
    if (is_home()) {
    return true;

    If you want some specified images don’t use load load, you can add ‘skip_lazyload’ class or attribute to them. After added, images’ source code may like this:

    <img src=”; skip_lazyload/>
    <img src=”; skip_lazyload/>
    <img src=”; skip_lazyload/>

    Plugin Author Bruno


    dangleraction, thanks for your opinions, you have helped a lot to improved this plugin.

    I’m closing this topic, any other questions, feel free to contact me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Possible option to not lazyload images that has a class name’ is closed to new replies.