• Resolved nqtrees

    (@nqtrees)


    woocommerce site with flatsome theme atcproducts.com.au

    lazyloading adds a gif to the admin and customer emails, which looks shouse on the email.

    link to inspect elements image

    link to inspect elements image

    I don’t have the sgoptimizer activated on the staging site staging3.atcproducts.com.au and the emails don’t have the lazyload gif when the email is inspected

    woocommerce is excluded from lazyload, but it seems that this doesn’t apply to the emails.

    all suggestions appreciated

    thanks Rick

    Exclude Media Types from Lazy Load
    Select one or more
    all the below encased in <strong> tag are excluded media types
    
    <strong>Gravatars
    
    Thumbnails
    
    Responsive
    
    Text Widgets
    
    Shortcodes
    
    Woocommerce</strong>
    
    Iframes
    Mobile
    Videos
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Stoyan Georgiev

    (@stoyangeorgiev)

    Hey there @nqtrees,

    The reason for the issues you are experiencing is caused by the Kadence WooCommerce Email Designer. Since it is using wp_kses to sanitize the HTML, it removes the noscript tags we are adding which are necessary for the proper work of the lazyload.
    You can try to exclude the specific image class used in the email designer. This will skip the lazyloading for it, but it should work everywhere else. If you encounter similar issues, keep in mind that some themes also use wp_kses to sanitize HTML.

    Kind regards,
    Stoyan

    Thread Starter nqtrees

    (@nqtrees)

    Hi, thanks for your reply, it is appreciated.

    any chance of a clue to where I would find the specific image class used in the email designer for the Kadence plugin.

    I used the inspector on an email and added the following classes to exclude classes from lazy-load – no joy

    attachment-100×50 size-100×50
    order_item
    td

    currently I have turned off Lasy Load Media and the emails are fine. I turned it back on to test with the classes above same problem as before

    I went into the plugin editor and had a look at assets/css but my technical ability was not up to figuring out which class would be likely to control the wp_kpses you mentioned.

    any further hints greatly appreciated

    regards Rick

    Plugin Author Ignat Georgiev

    (@ignatggeorgiev)

    Hey @nqtrees,

    Please try excluding the “attachment-100×50” class instead of “attachment-100×50 size-100×50”.

    Kind Regards,
    Ignat

    Thread Starter nqtrees

    (@nqtrees)

    Hi Ignat,

    you’re a genius

    I changed that class and it worked a treat.

    thanks for the help

    best regards Rick

    Plugin Author Ignat Georgiev

    (@ignatggeorgiev)

    You are most welcome, @nqtrees

    Drop a quick review for the plugin if you have the time, that would be highly appreciated 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Lazy loading happening on customer and adminemails’ is closed to new replies.