0

我正在使用 WooCommerce,我想删除产品图片,而是有一个完整的页面描述/插件。

使用下面的代码,(wp-content/themes/themename/functions.php)我能够成功删除图像

remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20

但是,左侧仍然有一个大的空白区域。我尝试将代码添加到 wp-content/themes/ themename /custom.css 但它不起作用

.single-product .product .summary { width: auto; }

如何删除空白/空白区域(产品图像通常所在的位置)?

4

1 回答 1

1

尝试更改.single-product .product .summary为:

.single-product .product .summary 
{ 
   width: 100% !important; 
   float: none !important;
}
于 2014-09-22T08:32:01.083 回答