woocommerce image product add a class and data-src attributes

I'm trying to add a class lazyload and the data-src attribute to my product images (woocommerce). I've look ev

I'm trying to add a class lazyload and the data-src attribute to my product images (woocommerce). I've look everywhere and couldn't find a solution for this.

I've try with some plugins, like a3 lazyload, but it does not work with the product images.

Thank you in advance,

I'm trying to add a class lazyload and the data-src attribute to my product images (woocommerce). I've look everywhere and couldn't find a solution for this.

I've try with some plugins, like a3 lazyload, but it does not work with the product images.

Thank you in advance,

Share Improve this question asked Mar 20, 2019 at 14:06 ChefussChefuss 231 silver badge6 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

Are you using a theme that has WooCommerce support? Look for:

woocommerce_get_product_thumbnail

and replace it with

the_post_thumbnail

This has worked before for me with A3 Lazy Load plugin.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745344802a4623493.html

相关推荐

  • woocommerce image product add a class and data-src attributes

    I'm trying to add a class lazyload and the data-src attribute to my product images (woocommerce). I've look ev

    2小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信