How can I change collection list media size

Solved

How can I change collection list media size

NOT1
Shopify Partner
222 2 108

My current look

NOT1_0-1725522627961.png


the look i want : (Image size on mobile 322x402)

Screenshot 2024-09-04 155754.png



Thanks : )

Accepted Solutions (3)

Tech_Coding
Shopify Partner
203 56 54

This is an accepted solution.

Hello @NOT1 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
@media only screen and (max-width: 767px) {
  #shopify-section-template--23255317348648__collection_list_pHMHUL .collection-list.slider .collection-list__item {
      max-width: 77% !important;
      padding-left: 10px;
  }
  #shopify-section-template--23255317348648__collection_list_pHMHUL .collection-list.grid {
      column-gap: 5px !important;
  }
}
</style>

Tech_Coding_0-1725523307900.png

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.

View solution in original post

Moeed
Shopify Partner
5082 1355 1636

This is an accepted solution.

Hey @NOT1 

 

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) {
li#Slide-template--23255317348648__collection_list_pHMHUL-1 {
    margin-left: 15px !important;
}
.collection-list.slider .collection-list__item {
    width: 70% !important;
}
}
</style>

RESULT:

Moeed_1-1725523334549.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 Specialist? Chat on WhatsApp
- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️

View solution in original post

Dan-From-Ryviu
Shopify Partner
9275 1863 1895

This is an accepted solution.

Hi @NOT1 

In case you want to display images width exactly 322x402 then please remove the previous code and then add this code to Custom CSS of that section

@media (max-width: 768px) {
    .collection-list.slider .collection-list__item {
        width: calc(100% - 3.8rem - 3rem) !important;
    }
}

- Helpful? Like and Accept solution!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

View solution in original post

Replies 3 (3)

Tech_Coding
Shopify Partner
203 56 54

This is an accepted solution.

Hello @NOT1 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
@media only screen and (max-width: 767px) {
  #shopify-section-template--23255317348648__collection_list_pHMHUL .collection-list.slider .collection-list__item {
      max-width: 77% !important;
      padding-left: 10px;
  }
  #shopify-section-template--23255317348648__collection_list_pHMHUL .collection-list.grid {
      column-gap: 5px !important;
  }
}
</style>

Tech_Coding_0-1725523307900.png

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.

Moeed
Shopify Partner
5082 1355 1636

This is an accepted solution.

Hey @NOT1 

 

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) {
li#Slide-template--23255317348648__collection_list_pHMHUL-1 {
    margin-left: 15px !important;
}
.collection-list.slider .collection-list__item {
    width: 70% !important;
}
}
</style>

RESULT:

Moeed_1-1725523334549.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 Specialist? Chat on WhatsApp
- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️

Dan-From-Ryviu
Shopify Partner
9275 1863 1895

This is an accepted solution.

Hi @NOT1 

In case you want to display images width exactly 322x402 then please remove the previous code and then add this code to Custom CSS of that section

@media (max-width: 768px) {
    .collection-list.slider .collection-list__item {
        width: calc(100% - 3.8rem - 3rem) !important;
    }
}

- Helpful? Like and Accept solution!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.