How to reduce spacing between collection title and products in collection view?

Topic summary

A user seeks to reduce excessive spacing between the collection title and product grid on their Shopify store’s collection pages. They provided a preview link and screenshot showing the current layout issue.

Two solutions were offered:

  • Both responders suggested adding custom CSS code to the theme.liquid file
  • The code should be inserted just before the closing </body> tag
  • The CSS targets spacing/padding elements related to the collection layout

Implementation steps:

  1. Navigate to Online Store → Themes → Edit Code
  2. Locate the theme.liquid file
  3. Insert the provided CSS snippet above the </body> tag
  4. Save changes

Both solutions include before/after screenshots demonstrating the reduced spacing. The discussion appears resolved with working CSS-based solutions provided.

Summarized with AI on November 5. AI used: claude-sonnet-4-5-20250929.

Hi everyone,

I’m looking to reduce the space between the collection title and the products in the collection view on my store. I’ve attached images showing the current layout and the issue I’d like to resolve.

Here’s the preview link to my store: https://ll4w4t6j24v2zyxo-86217654598.shopifypreview.com
Password: Password

Thanks in advance for your help!

Best,
Kim

1 Like

Hi @KimGottwald

Check this one.

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 “theme. Liquid” file. Find the tag and paste the code below before the tag.


And Save.

Result:

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

2 Likes

Hey @KimGottwald

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed