Problem with catalog images
-
I have problem with catalog images. I set them to specific size 200 x 180 and hard crop. I regenerated thumbnails after that. I can see all the correct images sizes in Uploads folder. However on catalog pages (product listings) The images are displayed by proper height but incorrect width for example:
160px x 180px and they do not looked cropped but resized.
(the reason the width is smaller than height here probably is because uploaded image is portrait, but it is also wrong in horizontal cases too)I also added this to my functions.php:
add_image_size( 'shop_catalog', 200, 180, true ); add_image_size( 'shop_single', 300, 300, true );
And images on single page work perfect, but not the product listing ones.
The image path on products listing is:
…uploads/image.jpg
instead of being:
…uploads/image-200×180.jpg
Why is this happening?Whole image tag looks like this:
<img width="160" height="180" alt="" class="attachment-shop_catalog size-shop_catalog wp-post-image" src="xxx/wp-content/uploads/image.jpg">
- The topic ‘Problem with catalog images’ is closed to new replies.