Shopify themes, liquid, logos, and UX
I would like to request your assistance with an issue concerning the picture thumbnail on our platform. It seems that the thumbnail image is not fitting properly, causing it to appear cut.
Could you please look into this and help adjust the image to fit appropriately? Your prompt attention to this matter would be greatly appreciated.
Solved! Go to the solution
This is an accepted solution.
Hi @Sheeks ,
I have reviewed your requirement, you just need to edit css script and the issue will be resolved. You can follow my instructions!
Step 1: Go to Admin -> Online store -> Theme > Edit code:
Step 2: Search for the file base.css. And add this code snippet to the end of the file.
.main-product-thumbnail-img img.lazyautosizes.ls-is-cached.lazyloaded {
object-fit: contain !important;
}
Step 3: Save and reload home page.
=>> The result:
I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.
Have a nice day sir!
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
This is an accepted solution.
Hi @Sheeks ,
I have reviewed your requirement, you just need to edit css script and the issue will be resolved. You can follow my instructions!
Step 1: Go to Admin -> Online store -> Theme > Edit code:
Step 2: Search for the file base.css. And add this code snippet to the end of the file.
.main-product-thumbnail-img img.lazyautosizes.ls-is-cached.lazyloaded {
object-fit: contain !important;
}
Step 3: Save and reload home page.
=>> The result:
I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.
Have a nice day sir!
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Hi @Sheeks
Check this one.
From you Admin page, go to Online Store > Themes
Select the theme you want to edit
Under the Asset folder, open the main.css(base.css, style.css or theme.css)
Then place the code below at the very bottom of the file.
.main-product-thumbnail-img img {
object-fit: contain !important;
}
And Save.
result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
To fix the thumbnail image cropping issue:
-CSS Fix: Use `object-fit: contain;` or `cover;` on the thumbnail class in your CSS file to adjust how the image fits.
If you need specifics on finding the class or exact CSS tweaks, let me know!
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024