product images not displaying all image

Solved

product images not displaying all image

vibehome
Explorer
69 3 30

Hello Shopify Friends

 

I have recently did an update on my theme and some of the product search results ' you may also like '  shows the product cut off. I did use code:<style> .collection .card__media .media img { object-fit: contain !important; } </stylefor the home page search results and it works but has not been updated for the this part - screen shots attached. You can see not all the product is being displayed

 

Screenshot 2024-09-07 at 15.19.47.png

Accepted Solutions (2)

BSSCommerce-HDL
Shopify Partner
2304 847 1062

This is an accepted solution.

Hi @vibehome

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

 

<style>
.related-products .card__media .media img {
    object-fit: contain !important;
}
</style>

 

 Here is result: 

BSSCommerceHDL_0-1725723199678.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you  😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

vibehome
Explorer
69 3 30

This is an accepted solution.

Your the best! Perfect once again 😀

View solution in original post

Replies 2 (2)

BSSCommerce-HDL
Shopify Partner
2304 847 1062

This is an accepted solution.

Hi @vibehome

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

 

<style>
.related-products .card__media .media img {
    object-fit: contain !important;
}
</style>

 

 Here is result: 

BSSCommerceHDL_0-1725723199678.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you  😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

vibehome
Explorer
69 3 30

This is an accepted solution.

Your the best! Perfect once again 😀