Arkadaşlar wordpreste resim çoğaltmayan tema var mi ?
Resim çoğaltılması seo açısından iyi aslında. Sitenizdeki alanlara göre resim boyutları geliyor ve daha az veri transferi oluyor.
İlla kaldırmak istiyorsanız temanızın functions.php dosyasına şu kodu ekleyin.
function remove_default_image_sizes( $sizes ) {
/* Default WordPress */
unset( $sizes[ 'medium' ]); // Remove Thumbnail (150 x 150 hard cropped)
unset( $sizes[ 'medium' ]); // Remove Medium resolution (300 x 300 max height 300px)
unset( $sizes[ 'medium_large' ]); // Remove Medium Large (added in WP 4.4) resolution (768 x 0 infinite height)
unset( $sizes[ 'large' ]); // Remove Large resolution (1024 x 1024 max height 1024px)
/* With WooCommerce */
unset( $sizes[ 'shop_thumbnail' ]); // Remove Shop thumbnail (180 x 180 hard cropped)
unset( $sizes[ 'shop_catalog' ]); // Remove Shop catalog (300 x 300 hard cropped)
unset( $sizes[ 'shop_single' ]); // Shop single (600 x 600 hard cropped)
return $sizes;
}
add_filter( 'intermediate_image_sizes_advanced', 'remove_default_image_sizes' );Bazı temalar custom image_size ekliyor. Bunları bulmak için aşağıdaki kodu kullanın;
add_action( 'admin_init', 'theme_additional_images' );
/**
* Display all image sizes other than the default, thumbnail, medium and large
*
*/
function theme_additional_images() {
global $_wp_additional_image_sizes;
$get_intermediate_image_sizes = get_intermediate_image_sizes();
echo '<pre>' . print_r($_wp_additional_image_sizes) . '</pre>';
}
Sayfanızın en üstünde array dizisi çıkacak yukarıdak gibi. Dizi içindeki başlıklardan mesajın en başında verdiğim kodlara ekleme yaparak temanın, belirlediği diğer özel boyutlu fotoğraflarıda silebilirsiniz.