Topic summary
A user seeks to reduce the spacing between product images and text in their Shopify collection page.
Issue:
- Excessive vertical gap between collection images and product text
- Affects the store at www.mommyandme.online
Solution Provided:
A support response offers Custom CSS code to adjust the spacing:
- Navigate to: Shopify → Online store → theme → customize
- Access: Settings → Custom CSS
- Insert provided CSS targeting
.product-grid-imageclasses
The CSS modifies:
- Image height properties (
height: fit-content) - Padding adjustments (
padding-top: 170px) - Auto height settings for lazy-loaded images
Status: Solution provided but not yet confirmed as implemented or tested by the original poster.
Hi @kldlaz
You can follow the instruction here :
-
Go to Shopify > Online store > theme > customize
-
Click to Settings > Custom CSS > Paste this code to the section and save.
.product-grid-image {
height: auto !important;
}
.product-grid-image--centered .lazyload__image-wrapper.no-js > div {
padding-top: 170px !important;
}
.product-grid-image--centered > div {
height: fit-content !important;
}
