Re: Request for Assistance with Thumbnail Image Issue

Solved

Request for Assistance with Thumbnail Image Issue

Sheeks
Pathfinder
109 1 16

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.

 

Sheeks_0-1725925388437.png

 

Accepted Solution (1)

BSSCommerce-B2B
Shopify Partner
1972 564 561

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:

BSSCommerceB2B_0-1725925867124.png

 

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: 

BSSCommerceB2B_2-1725925902603.png

 

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

View solution in original post

Replies 3 (3)

BSSCommerce-B2B
Shopify Partner
1972 564 561

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:

BSSCommerceB2B_0-1725925867124.png

 

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: 

BSSCommerceB2B_2-1725925902603.png

 

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

Made4uo-Ribe
Shopify Partner
9687 2303 2877

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:

Made4uoRibe_0-1725926137337.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

pert_Zee
Tourist
3 0 0

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!