How do i decrease the space here?

Topic summary

A user wants to reduce the vertical spacing between product images and the product title on their Shopify product page.

Solution Provided:

A community member offered a CSS-based fix:

  • Navigate to: Sales Channels → Online Store → Customize → Theme settings → Custom CSS
  • Add this CSS rule:
    [gp-el-wrapper]:has(gp-text h1) {
      padding-top: 10px !important;
    }
    
  • Save and hard refresh the page
  • The padding value (10px) can be adjusted as needed

Status: The responder believes the issue may already be resolved, but provided the solution as a reference. A screenshot demonstrates the expected result with reduced spacing.

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

I would like to decrease the space between the product images and product title. How do i do this?

https://timelessracingco.com/products/bear-t-shirt-copy

2 Likes

@timelessracing , I think this is already sorted, but just in case, here’s a ruleset to achieve that:

  1. Navigate to Sales Channels → Online Store → “Customize” button → Theme settings (Gear icon on the left sidebar) → Custom CSS
  2. Add the following code:
[gp-el-wrapper]:has(gp-text h1) {
  padding-top: 10px !important;
}
  1. Save (right top corner)
  2. Hard refresh the storefront

Feel free to readjust the value. The result should be similar to this: