Hello,
Is there a way of getting rid of the white space that is to the left and right of my collection list?
A user seeks to remove left and right whitespace from their collection list display on a Shopify Dawn theme store.
Initial Solutions Attempted:
.section-collection-list .page-width-desktop and #shopify-section-featured-collections were suggested for the base.css fileWorking Solution:
The problem was resolved by adding CSS to Customize > Theme settings > Custom CSS (not base.css):
.collection-list-wrapper.page-width {
max-width: 100% !important;
padding: 0 !important;
}
Follow-up Customization:
The user then requested control over vertical padding and spacing between images. Additional CSS was provided to:
padding-left and padding-right propertiesStatus: Resolved with additional customization options provided.
Hello,
Is there a way of getting rid of the white space that is to the left and right of my collection list?
In order to get rid of white space you have to paste this code in the end of base.css file.
Here is how you can find base.css file.
Go to Shopify Admin > Online Store > Edit Code > base.css
.section-collection-list .page-width-desktop{
padding: 0px !important;
max-width: 100% !important;
}
Results:
Hi there @villabodrum I suggest that you try this
#shopify-section-featured-collections .section-header {margin-bottom: 0px;}
#shopify-section-featured-collections .hr--invisible {
border-bottom: 0;
margin: 30px 0px 0px;
}
Copy
Let me know if it works for you.
Hi @villabodrum ,
Please go to Actions > Edit code > Assets > base.css file and paste this at the bottom of the file:
.collection-list-wrapper.page-width {
max-width: 100% !important;
padding: 0 !important;
}
Hi Unfortunately didnt work
Hi @villabodrum ,
Please send the website link, I will check it for you
Hi! https://ekety5-vj.myshopify.com/
Thank you!
Hi @villabodrum ,
Please go to Customize > Theme settings > Custom CSS and add code:
.collection-list-wrapper.page-width {
max-width: 100% !important;
padding: 0 !important;
}
Thank you so much!!
Do you know how I can play around with the padding above and in between the images?
Hi @villabodrum ,
.collection-list-wrapper.page-width {
max-width: 100% !important;
padding: 0 !important;
}
=>
.collection-list-wrapper.page-width {
max-width: 100% !important;
padding-left: 0 !important;
padding-right: 0 !important;
}
.collection-list-wrapper .collection-list {
--grid-desktop-vertical-spacing: 8px;
--grid-desktop-horizontal-spacing: 8px;
--grid-mobile-vertical-spacing: 4px;
--grid-mobile-horizontal-spacing: 4px;
}