Solved

Change images to 9:16 by default + add space between products

AnneP96
Tourist
21 0 1

Hey everyone!

 

I can really use your help with this:

- I want my images to be 9:16 ratio by default, on all collection/product pages.

- I want to increase the grid gaps between the images to around 20 px

- Also I would like to make my product grid less wide, because now it is as wide as the whole page.

 

My website: the-lena.studio

Password: LENAOPENINGSOON2024

 

I know it are quite a few questions, but I really would appreciate some help 🙂

 

Thank you so much!!

 

 

Accepted Solution (1)

Moeed
Shopify Partner
3795 958 1190

This is an accepted solution.

Hey @AnneP96 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag.

<style>
@media screen and (min-width: 768px) {
.grid--3-col-desktop .grid__item {
    width: calc(30.33% - var(--grid-desktop-horizontal-spacing)* 2 / 3) !important;
}
ul#product-grid {
    column-gap: 25px !important;
    padding: 0px 80px !important;
}
}
</style>

RESULT:

Moeed_0-1714648441805.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️

View solution in original post

Replies 2 (2)

Moeed
Shopify Partner
3795 958 1190

This is an accepted solution.

Hey @AnneP96 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag.

<style>
@media screen and (min-width: 768px) {
.grid--3-col-desktop .grid__item {
    width: calc(30.33% - var(--grid-desktop-horizontal-spacing)* 2 / 3) !important;
}
ul#product-grid {
    column-gap: 25px !important;
    padding: 0px 80px !important;
}
}
</style>

RESULT:

Moeed_0-1714648441805.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
AnneP96
Tourist
21 0 1

Thank you so much!!

The only thing I would still like to achieve is the image ratio 9:16 by default. 

How do I do that? 🙂