A user working with the Shopify SUPPLY theme sought to reduce spacing in their product grid, specifically wanting to:
Move product titles closer to images
Remove excess space below items
Address layout issues worsened by the Osaria media player
Screenshots showed significant vertical gaps between grid elements on earcave.com.
Solution provided:
Custom CSS code targeting .product-grid-image, .grid-item, and related classes was added to the theme’s CSS file (base.css/style.css/theme.css). The code adjusted:
Bottom margins on product images (12px)
Paragraph spacing (5px)
Grid item padding (10px)
Product title margins and image heights
The original poster confirmed both initial and follow-up CSS solutions successfully tightened the layout.
Another user later reported difficulty implementing the solution on their theme, suggesting the CSS may be theme-specific and require adjustment for different Shopify themes.
Summarized with AI on October 31.
AI used: claude-sonnet-4-5-20250929.
I’ve tried a few other suggestions in editing the code, but none of them seemed to work for our theme SUPPLY.02
Here’s a few screenshots.. how do we clean this up and tighten up the product by moving the Title closer to the Image, and removing the space under the item. We are trying to use the Osaria media player, and it made the current justification worse.
From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
Find the theme that you want to edit and click on “Actions” and then “Edit code”.
In the “Assets” folder, click on “base.css, style.css or theme.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: