Reduce Margin under custom text on Product Page

Topic summary

A store owner added custom code to display a product disclaimer beneath product images but is experiencing excessive spacing between the disclaimer and the product title.

Problem Details:

  • Custom disclaimer code was implemented as a “block” in the theme
  • The spacing issue only appears when the disclaimer code is active
  • Without the disclaimer, margins between product image and title appear normal

Attempted Solutions:

  • One community member suggested adding CSS code to the theme.liquid file (above the </body> tag) to reduce margin-top
  • This solution did not resolve the issue, likely due to the disclaimer being implemented as a custom block rather than standard HTML

Current Status:
The issue remains unresolved. The store owner shared their website (vaultfurniture.com) and screenshots showing both the problematic spacing and the custom code used. Another member offered to review the site directly or schedule a call to troubleshoot further.

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

I added custom code for a product disclaimer under my product images. I am wondering if anyone can help me to minimize the space between the disclaimer and the product title.

Product disclaimer Code used:

Original Thread here:

https://community.shopify.com/c/shopify-design/is-there-a-way-to-make-disclaimer-under-my-product-images/m-p/3003957#M785778%3Futm_source=communitymembers&utm_medium=email&utm_campaign=mention

1 Like

Hi @vaultfurniture ,

If you can send me your website, I’m happy to take a look. I’m also happy to jump on a call and show you how to fix it.

Feel free to reach out anytime using the email address/phone number in my signature.

Hey @vaultfurniture

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 then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

Hi, Website is vaultfurniture.com

Unfortunately, that did not work. I think it is because the code I added for the disclaimer was a “block”…Without the custom product disclaimer code the product image and title margins looks good.

With the code it looks like this:

The code I added for the product disclaimer: