我正在努力提高产品页面上的Wooommerce缩略图的质量,但没有效果。无论我做什么,拇指总是模糊地显示。
我已经尝试了不同的插件,如视网膜等,再生拇指,通过ftp上传新的photoshopped 300dpi img,并将它们替换为画廊中的那些,上传更大的img,禁用jetpack,在woocommerce和wordpress中使用不同的img设置播放(将质量设置为100%/缩放等),将此字符串放入functions.php
文件add_filter('jpeg_quality', function($arg){return 100;});
中,等等,仍然一无所获。
所以我认为有一些设置可能与FlexSlider有关,woocommerce使用的滑块。它可能也和Woolentor有关?使用Astra主题+ Elementor。我一无所知。
在我的网站上有一个产品页面的链接(例如:检查:保持安静!徽标,缩略图库中模糊,原始图像为900x900px):https://gamingaddicted.it/prodotto/handpicked-red-chillies/
提前感谢!
发布于 2021-04-12 14:36:36
你可以用下面的代码或者直接用你网站上的定制器来做。这里有一些提示的网址,也许你应该看看他们。- TIPS HERE
将此代码添加到主题的functions.php文件中,并根据需要更改宽度和高度。
/*change thumbnail quality in woocommerce*/
add_filter( 'woocommerce_get_image_size_gallery_thumbnail', function( $size ) {
return array(
'width' => 600, //change this to edit thumbnail witdth - default 150px
'height' => 600, //change this to edit thumbnail height - default 150px
'crop' => 0,
);
} );
https://stackoverflow.com/questions/67049967
复制相似问题