I am trying to make all the thumbnails be consistently the same size, but i have not been able to yet. I use the symmetry theme.
How can i accomplish this without hardcoding?
Example:
Without hard coding you need to make sure your image are of the same dimensions.
Yes you can give all the images a certain width and height with css.
That’s theme dependant. Some themes have setting to control this.
You can add CSS to make all images fit into, say, square space.
Then you need to decide where you want them to crop or scale down to fit.
Share a preview link to the theme you’re working on.
@AlmaVida Is it resolved? If you need it, we can help you out with it. The problem is giving fixed width and height may disturb the image’s aspect ratio. If all images are of equal width and height, yes, you can define the fixed width and keep the height auto. Make sure to add a separate custom css and also be careful with the templates where you are doing it.
Thank you
Hi @AlmaVida
Welcome to the Shopify Community! Please share your store URL and password (if it’s password-protected), so I can check and provide you with the exact solution.
Best regards,
Devcoder ![]()
You don’t need hardcoding just force a fixed aspect ratio for thumbnails using theme settings or minimal CSS.
Best (Theme-safe) option
Online Store → Themes → Customize → Product page
If images still vary (safe CSS fix)
Add this to Theme settings → Custom CSS:
.product__media-thumbnail img {
aspect-ratio: 1 / 1;
object-fit: cover;
}
(Use 3 / 4 instead of 1 / 1 if you want portrait thumbnails.)
Why this works
Upload consistent ratio images (square or portrait) going forward — CSS can align, but clean images give the best result.