Remove Gap between product title and price?

Topic summary

A user seeks to reduce the vertical spacing between product titles and prices on their Shopify store, providing a screenshot highlighting the gap.

Proposed Solutions:

Three respondents offered CSS-based fixes:

  • Dan-From-Ryviu suggested adding CSS targeting .grid-product__title with margin-bottom: -4px !important;

  • Moeed recommended inserting custom CSS in the theme.liquid file above the </body> tag

  • PageFly-Noah advised placing code in theme.liquid above the </head> tag

Implementation Steps:

All solutions involve:

  1. Navigating to Online Store → Themes → Edit Code
  2. Locating the theme.liquid file
  3. Adding custom CSS code at specified locations

Status: Multiple solutions provided but no confirmation yet on which approach resolved the issue. The discussion remains open pending user feedback.

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

Hello,

how can I remove the gap between product title and price, as highlighted in this photo?

Thank you!

Kim

Hi @KimGottwald

You can add this code to do that

.grid-product .grid-product__title { margin-bottom: -4px !important; }

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

Hi @KimGottwald

This is Noah from PageFly - Shopify Page Builder App

Please add this code to your theme.liquid above the to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the


Hope this can help you solve the issue

Best regards,

Noah | PageFly