How to remove margin between custom-liquid and header - Dawn Theme

Topic summary

Issue: Noticeable white space (~70px) between the header and an autoplaying video placed in a custom-liquid section on a Dawn theme page.

Context: The custom-liquid section is a Shopify section that allows custom HTML/Liquid. The page link and screenshots were provided to illustrate the gap and settings.

Proposed solutions:

  • CSS override: Add to base.css
    .spaced-section { margin-top: 0 !important; }
  • Theme settings adjustment: In Online store > Themes > Customize > Theme settings, reduce the relevant spacing value (exact setting shown in a screenshot).
  • theme.liquid edit: Instructions to paste code above , but the actual code snippet was missing in the post (empty block), so this guidance is incomplete.

Status/outcome: No confirmation from the original poster that any solution resolved the issue. The most concrete, actionable steps are the CSS override and adjusting the spacing in Theme settings.

Notes: Screenshots are central to identifying the exact Theme setting and visualizing the spacing problem. The discussion remains open/ongoing.

Summarized with AI on January 9. AI used: gpt-5.

Hello,

There is a bit of white space between the auto playing video (custom-liquid) and the header. Through the inspection tool I figured out that it was 70px (i may be wrong). How do I remove it?

Link to page is https://aquald.com/pages/aqua-l-series

Thank you in advance!!

1 Like

Hi @kevinvi1 ,Go to base.css and add the following code :

.spaced-section {
    margin-top: 0 !important;
}
1 Like

Go to your Online store > Themes > Customize > Theme settings, change this value

Hi @kevinvi1

This is Richard 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,

Richard | PageFly