每当我转到WooCommerce > 设置 > 产品 > 显示,更改图像尺寸并按“保存更改”时,它不会保存更改。
我知道在保存更改后我必须使用重新生成缩略图插件,但问题是“保存更改”按钮不会更改设置。
我的主题称为 Converio,converio/functions.php 包含以下代码:
if (class_exists('Woocommerce')) {
include('functions/woocommerce-support.php');
}
Run Code Online (Sandbox Code Playgroud)
converio/functions/woocommerce-support.php 包含以下代码:
function converio_woocommerce_image_dimensions() {
$catalog = array(
'width' => '560', // px
'height' => '627', // px
'crop' => 1 // true
);
$single = array(
'width' => '560', // px
'height' => '626', // px
'crop' => 1 // true
);
$thumbnail = array(
'width' => '60', // px
'height' => '60', // px
'crop' => 1 // …Run Code Online (Sandbox Code Playgroud)