我正在使用woocommerce(v3.4.3)和BeTheme运行wordpress(v4.9.6)。我们正在使用标准的woocommerce API将我们的产品推送到网上商店。
现在,在上传产品时突然之间,创建了19个(!)不同的缩略图。我不知道他们从哪里得到这些尺寸。我只选择了标准的。由于某些商店的产品超过5000种,这在服务器端引起了很多问题。
我已附上1条文章的屏幕快照,并附带了所有不同的看法。 thumbnail screenshot right here(尚未允许我嵌入)
任何有想法的人都来了,我该如何禁用它?我已经在主题函数文件中找到了这个:
if( ! function_exists( 'mfn_add_image_size' ) )
{
function mfn_add_image_size() {
// Backend --------------------------------------------
/*
* Featured Image
*/
set_post_thumbnail_size( 260, 146, false );
/*
* List Thumbnail for custom post formats
*/
add_image_size( '50x50', 50, 50, false );
// Builder Items --------------------------------------
/*
* Clients | do NOT crop logos
*/
add_image_size( 'clients-slider', 150, 75, false );
/*
* Slider | Muffin Builder Item
*
* TODO: Verify proportions (? size)
*/
add_image_size( 'slider-content', 1630, 860, true );
/*
* Testimonials
*
* TODO: change it to 200x200
*/
add_image_size( 'testimonials', 85, 85, true );
/*
* Sticky Navigation | Blog, Portfolio & Shop
* Widget: Recent Posts
*
* TODO: connect with testimonials & change it to 200x200
*/
add_image_size( 'blog-navi', 80, 80, true );
// Blog & Portfolio -----------------------------------
/*
* Portfolio | Style: Masonry flat
*
* TODO: SIZE too big? (use cover/width 100%? ipad?)
*/
add_image_size( 'portfolio-mf', 1280, 1000, true );
add_image_size( 'portfolio-mf-w', 1280, 500, true ); /* Wide */
add_image_size( 'portfolio-mf-t', 768, 1200, true ); /* Tall */
/*
* Portfolio | Style: List
*
* TODO: Verify proportions (? size)
*/
add_image_size( 'portfolio-list', 1920, 750, true );
// Blog & Portfolio | Dynamic sizes -------------------
/*
* Blog & Portfolio | List
*/
$archivesW = mfn_opts_get( 'featured-blog-portfolio-width', 960 );
$archivesH = mfn_opts_get( 'featured-blog-portfolio-height', 750 );
$archivesC = mfn_opts_get( 'featured-blog-portfolio-crop', 'crop' );
$archivesC = ( $archivesC == 'resize' ) ? false : true;
add_image_size( 'blog-portfolio', $archivesW, $archivesH, $archivesC );
/*
* Blog & Portfolio | Single
*/
$singleW = mfn_opts_get( 'featured-single-width', 1200 );
$singleH = mfn_opts_get( 'featured-single-height', 480 );
$singleC = mfn_opts_get( 'featured-single-crop', 'crop' );
$singleC = ( $singleC == 'resize' ) ? false : true;
add_image_size( 'blog-single', $singleW, $singleH, $singleC );
}
}
add_action( 'after_setup_theme', 'mfn_add_image_size', 11 );
但是我不认为这是问题所在,因为此处未指定许多缩略图大小。