Reduce Spacing Between SKU and Title

Topic summary

A user seeks to reduce the vertical spacing between the SKU and product title on their Shopify product pages.

Solution Provided:

  • Navigate to Shopify admin → Online Store → Themes → Actions → Edit code
  • Open the CSS file (base.css, style.css, or theme.css) in the Assets folder
  • Add the following CSS at the bottom:
p.product__sku.subtitle {
  margin-bottom: 0 !important;
}
  • Save the changes

Outcome:
The original poster confirmed the solution worked successfully.

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

I would like to reduce the spacing between my SKU and pruct title.

I’ve tried ChatGPT and searched for code but i cant come right.

Please help.

This is what it looks like:

Here is my website link: https://8ae3b9-27.myshopify.com/products/grange-contisuit-classic-2-piece

Thanks in advance.

1 Like

Hi @ProconMarketing

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 “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:
p.product__sku.subtitle {
    margin-bottom: 0 !important;
}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

1 Like

Thanks! Legend!