How can I modify the product grid size without impacting pictures in home page

jessica_0430
Excursionist
26 0 2

hi,

Yesterday I posted a question for product grid size modification and I updated  the code. But I find it also impacted my picture in home page, it was square originally but now is rectangular after updating the code.

Can someone help me fix the issue? I want all pictures square

I attach the original code below I updated for the product grid size yesterday

and also attach the home page product picture below.

 

<style>
.card__inner.color-background-2.gradient.ratio {
max-height: 305px !important;
}
</style>

 

 

 

jessica_0430_0-1697683072864.png

 

Replies 2 (2)
Dan-From-Ryviu
Shopify Partner
5372 974 997

Hi @jessica_0430 

Please remove that code and setup your product grid image in your Online store > Themes > Customize > Collections > Default collection > Product grid > change Image ratio setting to Square Screenshot 2023-10-19 at 09.46.24.png

- Helpful? Like and Accept a solution. - Donate: Buy coffee - or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now

jessica_0430
Excursionist
26 0 2

hi Dan,

Sorry that I should mention the background why I put this code.

The reason is the size of my product grids was not consistent and want all images can be square. But somehow it will change my photo in home page.

I removed the code now and remain as it was and the home page photo now is square. Do you have any suggestion to fix the issue?

 

Here is my store URL: https://9f1b1e-2.myshopify.com/

 

thanks