How to remove white space on products (mobile) - Dawn theme

Topic summary

A user is experiencing excessive white space below the slideshow on mobile devices using the Dawn theme.

Three solutions were provided:

  1. CSS modification via base.css: Add display:none styling to .slideshow__text.banner__box.content-container:empty at the bottom of the base.css file.

  2. Media query in theme.liquid: Insert CSS before </body> in theme.liquid targeting the specific slide ID with display: none !important for screens under 767px width.

  3. CSS in head section: Add similar mobile-specific styling (.slideshow__text.banner__box.slideshow__text--mobile-center { display: none !important; }) above </head> in theme.liquid.

All solutions involve accessing Online Store → Theme → Edit code and adding custom CSS to hide empty or problematic elements on mobile views. The issue appears related to empty content containers in the slideshow section creating unwanted spacing.

Status: Multiple solutions offered; awaiting confirmation from the original poster on which approach resolved the issue.

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

@vic186 ,

Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above


Result:

If it helps you, please like and mark it as the solution.

Best Regards :blush:

1 Like