Have your say in Community Polls: What's your biggest current challenge?

Customize collection list appearance

Solved

Customize collection list appearance

JordiP
Explorer
53 0 10

Hello, I want to edit how the images in my collection list appear so there is more white space in-between the images, for both desktop and mobile. There is an example below how I want it to look. Any help is appreciated 🙂

 

Screenshot 2024-11-12 at 03.58.46.png

(^ this is how it looks now, cluttered)

 

Screenshot 2024-11-12 at 04.00.25.png

 (^ This is the type of white spacing I would like to see)

 

Store: artisimo.es

pass: pongia

Accepted Solution (1)

DaisyVo
Shopify Partner
985 124 140

This is an accepted solution.

Hi @JordiP 

 

You can follow the steps here:

 

Step 1: Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
Step 2: From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/ypQ7nly2wv27
Step 3: Copy the code below and paste it there

 

Here is the code for step 3:

 

@media screen and (min-width: 768px){
.collection-list-wrapper > slider-component > ul.collection-list {
    column-gap: 10px !important;
    row-gap: 10px !important;
}
.collection-list-wrapper > slider-component > ul.collection-list > li {
    width: 20% !important;
}
}

 

 

To adjust the spacing between cards, modify the values in column-gap and row-gap. Please note that increasing the gap might necessitate decreasing the width to prevent them from wrapping to the next line.

 

Here is the result: 

DaisyVo_0-1731378693087.png

Let me know if it helps!

 

Best,

Daisy

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution

View solution in original post

Replies 4 (4)

BSSCommerce-B2B
Shopify Partner
1969 564 566

@JordiP,

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

Step 2: Search file theme.liquid

Step 3: Insert this code above </head>

<style>
.collection-list.contains-card {
    gap: 10px !important;
    padding: 10px !important;
}
.collection-list.contains-card > .collection-list__item {
  width: fit-content!important;
} 
</style>

Result:

BSSCommerceB2B_0-1731377338903.png

If it helps you, please like and mark it as the solution.

Best Regards 😊

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

JordiP
Explorer
53 0 10

Thank you! It works on the landing page, however there are some issues on my collectios page (collections list), I want there to be 5 columns on desktop view. (Mobile view is perfect).

 

JordiP_0-1731501601945.png

(^ Here is a screenshot, there are currently 10+ columns, I want the images to be bigger (their original size) and have 5 columns maximum.)

 

Thank you for your help!

DaisyVo
Shopify Partner
985 124 140

This is an accepted solution.

Hi @JordiP 

 

You can follow the steps here:

 

Step 1: Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
Step 2: From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/ypQ7nly2wv27
Step 3: Copy the code below and paste it there

 

Here is the code for step 3:

 

@media screen and (min-width: 768px){
.collection-list-wrapper > slider-component > ul.collection-list {
    column-gap: 10px !important;
    row-gap: 10px !important;
}
.collection-list-wrapper > slider-component > ul.collection-list > li {
    width: 20% !important;
}
}

 

 

To adjust the spacing between cards, modify the values in column-gap and row-gap. Please note that increasing the gap might necessitate decreasing the width to prevent them from wrapping to the next line.

 

Here is the result: 

DaisyVo_0-1731378693087.png

Let me know if it helps!

 

Best,

Daisy

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
JordiP
Explorer
53 0 10

How could I optimize for mobile view aswell? Thanks!