Collection List - Mobile Fix

Collection List - Mobile Fix

ellacoker
Shopify Partner
287 1 74

Hello,

I have coded my collection list so that they are rectangles, however I would like to reduce the padding to the left and right on mobile version. I am happy with desktop version !

 

URL: https://www.livwithin.com.au/

 

Screenshot 2025-04-30 at 10.32.39.png

Replies 4 (4)

Guleria
Shopify Partner
4147 809 1164

Hello @ellacoker ,

 

Follow these steps:

1. Go to Online Store -> Theme -> Edit code

2. Open your Assets > base.css file and paste the following code at the bottom:

 
@media screen and (max-width: 749px) {
    .collection-list-wrapper.page-width {
        padding: 0 0px !important;
    }
}

 

Regards
Naveen

- Custom themes, UI/UX design, ongoing maintenance & support.
- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder

Bundler-Manuel
Astronaut
1012 51 118

Hey there @ellacoker  I suggest that you follow these steps to solve your padding issues

Go to Online Store->Theme->Edit code
Step 2: Asset->/section-collection-list.css->paste below code at the bottom of the file:

.collection-list .collection-list__item {
    width: 50% !important;
    max-width: 50% !important;
}

Let me know if this helps you!

Emmanuel
Please let me know if it works by marking it as a solution!
Bundler - Product Bundles app, a great bundle app for Shopify, with glowing user testimonials and a free plan.

Dotsquares
Shopify Partner
433 28 54

Hi @ellacoker 

To reduce the left and right padding on mobile for your collection list section while keeping the desktop layout unchanged, you can add a responsive CSS rule that specifically targets smaller screens.

Add the Following CSS:

 

 

@media screen and (max-width: 749px) {
.collection-list-wrapper {
padding-left: 10px !important;
padding-right: 10px !important;
}
}

 

You can adjust the pixel value. Let me know if this works for you.

Dotsquares Ltd


Problem Solved? ✔ Accept and Like solution to help future merchants.


Shopify Partner Directory | Trustpilot | Portfolio

Marcus-T
Shopify Partner
9 0 1

To reduce the left and right padding on mobile while keeping the desktop version unchanged, you can add a media query in your theme's CSS. Here's a quick sample:

@media only screen and (max-width: 767px) {
.your-collection-class {
padding-left: 10px;
padding-right: 10px;

Just replace .your-collection-class with the actual class used for your collection list container. This will apply the padding adjustment only on mobile devices.

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Get experienced Shopify developers at affordable rates for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
marcustthomas071@gmail.com