Reduce column and row gap on collection/all product page

Hi Guys,

I would like to Reduce column and row gap on collection/all product page for products. I tried using .grid but it affects other items as well. I would appreciate if you can help. Thanks

URL: https://basicbastard.co/collections/all

1 Like

Hello There,

  1. In your Shopify Admin go to online store > themes > actions > edit code
  2. Find Asset → base.css and paste this at the Top of the file:
#product-grid {
    column-gap: 15px;
    row-gap: 15px;
}

1 Like

I had to modify a bit but worked. Thanks

1 Like

Hi @basicbastardco ,

I understand that you want to reduce culomn and row. Try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “theme.scss.liquid, styles.scss.liquid or base.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
  4. And Save.
ul#product-grid {
    column-gap: 10px;
    row-gap: 0px;
}

Result:

I hope it help.

1 Like

Thank you for your response. It’s good to know that it’s worked for you. Kindly feel free to get back to me if you need any further assistance.
If helpful then please Like and Accept Solution.

1 Like