• Resolved lanvalencia

    (@lanvalencia)


    I have the smush plugin and in the part of lazy load it has to put images that you don’t want the lazy load to act but I can’t get the image to work for me, I put the IDs, the name of the image with its IDs and a thousand ways and it doesn’t work for me and I wanted to know how to put it because otherwise the main page I can’t put the lazy load on the whole page and it makes me go a little slow. Thank you.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @lanvalencia,

    Could you please point to an image which you are trying to exclude?

    Best regards,
    Anton

    Thread Starter lanvalencia

    (@lanvalencia)

    My site is tourswalking.com and in my main page i want to exclude all the image of top destinations but i do not too put in smush plugin in lazy load, i put the IDs of the image but do not work.

    @lanvalencia,

    All the images have the same class – ‘img-responsive’. So you can’t really filter out the “Top destination” images, because there’s no way to identify them from the others. Are you able to add a specific class to images via your theme?

    Adding a ‘no-lazyload’ class will make lazy load module ignore such images.

    Best regards,
    Anton

    Thread Starter lanvalencia

    (@lanvalencia)

    I can not to add a specific class to image in my theme.

    Unfortunately, you won’t be able to distinguish between images without unique classes or IDs. You can use a filter and check the image URL and exclude that way, but you’d need to update the code every time you update the “Top destination” block.

    Best regards,
    Anton

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘lazy load in smush’ is closed to new replies.