WPIntell

Source evidence

Unable to exclude custom class

Lazy Load Optimizer · support · 2019-11-03T23:42:00+00:00

complaintsentiment
mediumseverity
0.75relevance
0replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 34 rows with source links

11.8% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

30 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
JapeNZ unresolved
Hi there, I’ve added a custom class to product images loaded by Ari Lightbox with this code: $("img").addClass("myimg") And added ‘myimg’ to the ‘CSS classes to exclude’ area, but the images are still be lazyloaded. The custom class is working fine but I’m seeing ‘class=”wp-post-image myimg lazyloaded”‘ The reason I need to do this is that if a product has variant options (I have all variations viewable on the catalog page) when a customer clicks on a variation to be taken to the product page, the wrong product image is displayed (default rather than variation). If lazy loading is disabled the correct image is displayed. I’ve also tried stopping lazy loading for /product/ in the ‘Exclude pages by URI’ section, but this stops the thumbnails in the cart widget from loading. Any idea how I can get the custom class to not be lazy loaded? Thanks for your help! Kind regards, JP

Comments

0 shown

No comments were stored for this source.