We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Make product cards smaller on collection pages - Palo Alto

Solved

Make product cards smaller on collection pages - Palo Alto

MollieHammond
Explorer
54 1 8

Hi All, 

 

Hope everyone is having a great week. 

We are using the Palo Alto theme and i'm trying to make the product cards in the collection pages a bit smaller, creating a bit more space between them, while keeping 4 in a row on the pages. Ideally the images would be a bit smaller and the text would remain the same size. If anyone could assist me by letting me know how to do this it would be greatly appreciated. 

 

Website URL: https://www.coffee.prestigerepairs.com.au/collections/manual-coffee-machines

 

Thank you!

Kind regards,

Mollie Hammond
Accepted Solution (1)

PaulNewton
Shopify Partner
8031 688 1649

This is an accepted solution.

Hi @MollieHammond 👋 In a custom css setting try the following tailoring the "6" to need

https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/add-css

@media only screen and (min-width: 1024px) and (max-width: 1439px) {
  .one-quarter {
    width: calc((var(--wrapper-width) - var(--grid-gutter) * 3) / 6) !important;
  }
}

The !important is because there are 100% rules that are overriding even the actual grid behaviors from classes like .one-quarter

If that can be addressed instead give the collection__products container a custom --grid-gutter value.

 

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


View solution in original post

Replies 3 (3)

PaulNewton
Shopify Partner
8031 688 1649

This is an accepted solution.

Hi @MollieHammond 👋 In a custom css setting try the following tailoring the "6" to need

https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/add-css

@media only screen and (min-width: 1024px) and (max-width: 1439px) {
  .one-quarter {
    width: calc((var(--wrapper-width) - var(--grid-gutter) * 3) / 6) !important;
  }
}

The !important is because there are 100% rules that are overriding even the actual grid behaviors from classes like .one-quarter

If that can be addressed instead give the collection__products container a custom --grid-gutter value.

 

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


MollieHammond
Explorer
54 1 8

That worked PERFECTLY! Thank you so much 🙂

Kind regards,

Mollie Hammond

Dan-From-Ryviu
Shopify Partner
12073 2359 2539

Hi @MollieHammond 

Please go to your store admin > Sales channels > Online Store > Themes > Customize > Theme settings > in Custom CSS, paste this code 

@media (min-width: 990px) {
.collection__products .product-grid-item {
    width: 80% !important;
}
}

Screenshot 2025-06-27 at 08.48.23.png

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.