• Resolved pako69

    (@pako69)


    Hi

    This setting works well for an image that has a class, like:
    <img class="myclass" ……

    But what if I want to exclude images of a parent container?

    <div class="mycontainer">
    <img class="myclass" ……
    </div>

    I tried to give:
    .mycontainer .myclass
    or
    .mycontainer * .myclass

    But it do not works.

    Thanks

    • This topic was modified 4 years, 11 months ago by pako69.
    • This topic was modified 4 years, 11 months ago by pako69.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @pako69

    I trust you are doing well!

    The parent field is not accepted, I’m afraid. To exclude an image from being LazyLoading and image class needs to be added. So if teh code is <img class="myclass" ……, please add myclass to exclusion fields.

    Hope this helps!

    Cheers,
    Nastia

    Thread Starter pako69

    (@pako69)

    hi @wpmudev-support9

    Could you consider to add this in a futur version?

    Being able to choose only one class is not very useful sometimes.

    LiteSpeed Cache plugin (in the futur V3 version) that also manage Lazy Loading, will add this option: https://github.com/litespeedtech/lscache_wp/blob/16b408e2d9cc33d9886a24843412adb30f798f47/readme.txt#L312

    (>> Page Optimize** Lazy Load Image Parent Class Name Excludes. (@pako69))

    Thanks ??

    Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @pako69,

    This seems like a great suggestion and option too. I will be conveying the same to our developers to see if the same can be implemented.

    I would also like to thank you for bringing this up to and suggesting the feature. Should you have any further doubts or need any help, feel free to write to us here and we would be happy to help you.

    Regards,
    Prathamesh Palve

    Since you can exclude pages already, that would mean it should be fairly easy to exclude other ‘containers’, as many images (most actually) do not have any classes or ids added, but their ‘containers’ have.

    Current setting is unfortunately useless in most cases.

    Please consider changing it to exclude image ‘container’ class or id exclusion, like div that image sits in.

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @kramarz

    Please consider changing it to exclude image ‘container’ class or id exclusion, like div that image sits in.

    That’s what the “parent class/ID” would be as discussed in previous posts. My colleague already suggested adding such feature to the plugin to our developers so I hope will see it implemented in future.

    Best regards,
    Adam

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello there @pako69

    I hope you are doing well!

    We haven’t heard back from you for a while now so we’ve marked this ticket as resolved. If you do have any followup questions or require further assistance feel free to reopen it and let us know here.

    Kind regards,
    Nastia

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Exlude image from lazy load by class names’ is closed to new replies.