我需要从 wordpress woocommerce 画廊/灯箱中隐藏特色产品图片,但它仍然必须在产品页面中显示为大图片。我尝试了几个片段,例如 Remove featured image from the WooCommerce gallery,但这些片段最终会从图库和产品页面或图库/灯箱本身中删除精选 img。
请参阅附件 img 链接。
提前致谢!
我需要从 wordpress woocommerce 画廊/灯箱中隐藏特色产品图片,但它仍然必须在产品页面中显示为大图片。我尝试了几个片段,例如 Remove featured image from the WooCommerce gallery,但这些片段最终会从图库和产品页面或图库/灯箱本身中删除精选 img。
请参阅附件 img 链接。
提前致谢!
可以用你的 css 来做到这一点。但请记住一件事。隐藏第一个缩略图并不总是一个好主意,因为当有人点击您图片库中的另一张图片时,您将丢失第一张精选图片,因此客户可能看不到主要产品。
.woocommerce div.product div.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:first-child {
display: none;
}