Visual appeal is everything in e-commerce. A highly visible layout bug in WooCommerce causes product images on shop catalog grids to look distorted, pixelated, stretched out, or completely uneven. One product thumbnail might display as a tall rectangle, while the item right next to it renders as a squished square, destroying the clean aesthetic design of your store.
This layout bug is usually triggered by a conflict between how your WordPress theme handles CSS image cropping boundaries and how WooCommerce manages image scaling settings. When you upload a product image, WordPress creates several resized copies of that file. If a theme forces an image into a strict container size using width: 100% without setting an automatic height property, or if your WooCommerce product thumbnail cropping settings are mismatched against the original aspect ratio of your photography asset library, the browser stretches the image out of proportion.
The Solution
To restore perfectly balanced, uniform product grids, you need to standardize your thumbnail crop ratios and regenerate your image files.
-
Adjust Customizer Image Settings: Go to Appearance > Customize > WooCommerce > Product Images. Under the Thumbnail cropping settings, select 1:1 (Square) or Custom to force a consistent aspect ratio across your store.
-
Regenerate Existing Image Sizes: Changing your crop settings only impacts new image uploads. To fix existing products, install the Regenerate Thumbnails plugin. Run the utility to rebuild all your catalog images to match your new aspect ratio rules.
-
Inject CSS Aspect Ratio Overrides: If your theme continues to stretch out your product photos, add this responsive, auto-scaling CSS snippet to Appearance > Customize > Additional CSS:
.woocommerce ul.products li.product a img {
width: 100% !important;
height: auto !important;
object-fit: cover !important;
aspect-ratio: 1 / 1 !important;
}
This guarantees that even if your uploaded images have mismatched sizes, the browser will cleanly crop them into uniform square boxes without distortion.
