我正在为woocommerce开发自定义主题,现在我想在archive-product.php代码和类中自定义图像产品。我不知道woocommerce_before_shop_loop_item模板在哪里 返回
<a href="" class="woocommerce-LoopProduct-link woocommerce-loop-product__link"><img width="150" height="150" src="http://pixelshop.com/wp-content/uploads/2019/06/33a8d2ffb3646e36f8c3bdb41eb6a084-150x150.png" class="attachment-woocommerce_thumbnail size-woocommerce_thumbnail" alt="" srcset="http://pixelshop.com/wp-content/uploads/2019/06/33a8d2ffb3646e36f8c3bdb41eb6a084-150x150.png 150w, http://pixelshop.com/wp-content/uploads/2019/06/33a8d2ffb3646e36f8c3bdb41eb6a084-100x100.png 100w" sizes="(max-width: 150px) 100vw, 150px"> </a>
答案 0 :(得分:0)
代码在 yourtheme / wp-content / plugins / templates / checkout / content-product.php 可以通过将其复制到yourtheme / woocommerce / content-product.php来覆盖此模板