我已经为我的主题安装了WooZoone、Woocommerce和Divi。产品详细信息页面看起来很完美。但当我在首页添加产品块时,图像不会显示。
生成的HTML代码为:
<img width="300" height="300" src="https://images-eu.ssl-images-amazon.com/images/I/416uQ46gN5L._SS300_.jpg" class="attachment-woocommerce_thumbnail size-woocommerce_thumbnail wp-post-image" alt="" srcset="https://armbanduhr-angebote.com/wp-content/uploads/https://images-eu.ssl-images-amazon.com/images/I/416uQ46gN5L._SS300_.jpg 300w, https://armbanduhr-angebote.com/wp-content/uploads/https://images-eu.ssl-images-amazon.com/images/I/416uQ46gN5L._SS150_.jpg 150w, https://armbanduhr-angebote.com/wp-content/uploads/https://images-eu.ssl-images-amazon.com/images/I/416uQ46gN5L._SS768_.jpg 768w, https://armbanduhr-angebote.com/wp-content/uploads/https://images-eu.ssl-images-amazon.com/images/I/416uQ46gN5L._SS1024_.jpg 1024w, https://armbanduhr-angebote.com/wp-content/uploads/https://images-eu.ssl-images-amazon.com/images/I/416uQ46gN5L._SS400_.jpg 400w, https://armbanduhr-angebote.com/wp-content/uploads/https://images-eu.ssl-images-amazon.com/images/I/416uQ46gN5L._SS1080_.jpg 1080w, https://armbanduhr-angebote.com/wp-content/uploads/https://images-eu.ssl-images-amazon.com/images/I/416uQ46gN5L._SS510_.jpg 510w, https://armbanduhr-angebote.com/wp-content/uploads/https://images-eu.ssl-images-amazon.com/images/I/416uQ46gN5L._SS600_.jpg 600w, https://armbanduhr-angebote.com/wp-content/uploads/https://images-eu.ssl-images-amazon.com/images/I/416uQ46gN5L._SS100_.jpg 100w, https://armbanduhr-angebote.com/wp-content/uploads/https://images-eu.ssl-images-amazon.com/images/I/416uQ46gN5L._SS64_.jpg 64w" sizes="(max-width: 300px) 100vw, 300px">
srcset中的所有链接都是
https://armbanduhr-angebote.com/wp-content/uploads/
+
absolute amazon url
.
有人知道这是从哪里来的吗?我如何解决这个问题?
最合适的回答,由SO网友:Marc Loeb 整理而成
我想你已经解决了这个问题,但我还是无意中发现你的帖子也有同样的问题。我可以通过应用woozone本身的错误修复来解决问题-在启用woozone的wordpress解决方案中,转到:
WZone->;配置->;Bug Fixes(错误修复)向下滚动至选项;禁用WordPress图像Srcset属性将选项值设置为“是”,保存设置问题是,如果存在多个图像,woozone应用媒体存储在amazon上(我的设置为“否”,但插件在某些情况下仍会这样做)。srcset是使用站点图像上载url生成的,后跟绝对amazon url,如您所述。