Support » Plugin: a3 Lazy Load » Excluding Metaslider Image Class

  • Happy St. Patty’s Day WP Community!

    I recently installed this plugin to improve my site’s loading speeds and encountered an issue when trying to exclude the images of a particular page of my website. All the images on this page are contained in Metaslider’s slideshow plugin. Since there’s no option to exclude pages yet, I used Chrome Developer Tools to find the image class of these slideshows, which is ‘nivo-main-image’. I then added that to Lazy Load’s ‘Skip Image Class’ settings which didn’t work.

    There’s over 60 images on this page contained in sliders; individually, the images don’t have a class yet. Is there an easier way to exclude the images in these sliders aside from adding a CSS class to all the individual images in my media library?

    Appreciate any suggestions and assistance.

    Thanks!

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Steve Truman

    (@a3rev)

    Hi @mildhabanero

    I am guessing that this is the Meta Slider plugin that you are having your a3 lazy Load issue with?

    https://wordpress.org/plugins/ml-slider/

    If it is that plugin the Skip Image Class not working may have something to do with the way the slider is embedded – from the plugins description

    Choose one of 4 different slideshow types, and use our provided short-code or template to embed the slideshows.

    Perhaps a3 Lazy Load can’t see the images in that embed code, but I don’t know.

    If you can confirm it is that plugin we will download it to a local – run some tests and see what the issue is for you.

    Regards
    Steve

    Yes, this is the plugin that does not work with Lazy Load. Are there any fixes we could implement in order to avoid the conflict?

    I’m using msDefaultImage,slide-.* as my skipped image classes with https://github.com/a3rev/a3-lazy-load/pull/20 applied so that .* works as a wildcard (since metaslider gives classes with unique ids making them not readily selectable with a static class). The images load right away after doing so for myself.

    Keep in mind that this isn’t an official patch/version update as of yet. So updating the code yourself & managing the updates afterwards is something you’ll need to take into account. That being said, I’ve requested that this be officially implemented in a future version of the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Excluding Metaslider Image Class’ is closed to new replies.