如何删除WooCommerce商店的图像? [英] How to remove WooCommerce shop images?
问题描述
我正在尝试几个小时,以禁用woocommerce商店中的图像,但尚未找到任何解决方案,这是商店页面(而非产品页面)现在的外观以及我要删除的内容的屏幕截图: https://imgur.com/XEELei1
I'm trying for few hours now to disable the images from my woocommerce shop but couldn't find any solution yet, here's a screenshot of how the shop page (not product page) is looking now and what I want to remove: https://imgur.com/XEELei1
我已经尝试添加:
///从商店循环中删除产品图像remove_action('woocommerce_before_shop_loop_item_title','woocommerce_template_loop_product_thumbnail',10);
// Remove product images from the shop loop remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );
///从商店循环中删除销售徽章remove_action('woocommerce_before_shop_loop_item_title','woocommerce_show_product_loop_sale_flash',10);
// Remove sale badges from the shop loop remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_show_product_loop_sale_flash', 10 );
在functions.php中,但该图像仍然存在.
In functions.php, but that image is still there.
谢谢.
推荐答案
这解决了问题:
.products .box-image {display:none;}
.products .product-small .box-text {display:flex!important; }
.products .product-small .price-wrapper {margin:20px;}
这篇关于如何删除WooCommerce商店的图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!