Hi all, how can I reduce the padding around the text in the collection list cards? On Mobile only. URL is boops.co.uk
Thanks, Kristian
A user seeks to reduce padding around text in collection list cards on mobile devices only.
Problem: Excessive padding appears around collection card text on mobile view (screenshot provided).
Solutions Offered:
Multiple developers provided CSS-based solutions with similar approaches:
theme.liquid file before the </head> or </body> tagbase.css, theme.css, or main.css files at the bottomCommon CSS approach:
max-width: 767px or 749px)margin: 0 !important or padding adjustments to slider/card elements.slider, .card__information, or .collection-list-item classesKey technical details:
@media screen queries for mobile-only targetingStatus: Multiple working solutions provided; awaiting user confirmation of which approach resolved the issue.
Hi all, how can I reduce the padding around the text in the collection list cards? On Mobile only. URL is boops.co.uk
Thanks, Kristian
Hi @Boops_1 ,
Step 1: Go to Shopify Admin β Online Store ->Theme β Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above tag:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you ![]()
Hello @Boops_1
You can add code by following these steps
Go to Online Store β Theme β Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
@media screen and (max-width: 989px) {
.slider.slider--tablet.contains-card--standard .slider__slide:not(.collection-list__item--no-media) {
margin-left: 0 !important;
}
}
Hi @Boops_1
Check thiso ne.
From you Admin page, go to Online Store > Themes
Select the theme you want to edit
Under the Asset folder, open the main.css(base.css, style.css or theme.css)
Then place the code below at the very bottom of the file.
@media only screen and (max-width: 749px){
.section-collection-list .page-width .card__information {
padding: .5rem;
}
.card .card__inner .card__media {
margin: 0;
}
}
And Save.
result:
Please donβt forget to Like and Mark Solution to the post that helped you. Thanks!