Image full width in section image with text - Dawn Theme

Topic summary

A user seeks to display images in full width within Dawn theme’s “image with text” sections, eliminating all borders (top, bottom, and sides). Screenshots show unwanted left-side borders on both mobile and desktop views.

Solutions Provided:

  • Multiple contributors offer CSS code snippets to be added to theme.liquid file before the </body> tag
  • Code targets specific section padding and width properties using !important declarations
  • One solution successfully resolves the issue for the original poster

Follow-up Discussion:

  • User asks if the same code can apply to product images in full width
  • A contributor provides additional CSS for product images, but reports it doesn’t work
  • Another user inquires whether the solution works for the Spotlight theme
  • Final comment confirms one of the CSS solutions is the only method that worked after trying dozens of suggestions

Status: Partially resolved—the “image with text” section issue is solved, but product image full-width display remains unresolved.

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

Hello,

I would like to be able to display some images in some sections in full width using the Dawn theme.
I’ve read several pages about this but haven’t found a solution that works for me.

I would like to be able to display the image of an “image with text” section in full width without a border at the top, bottom or side. Most of the code I’ve tried leaves a border to the left of the image.

The link to my store is: https://ancestraathletes.com

Thanks for taking the time to read!

Hey @Julietteweb

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

Best Regards,
Moeed

Hello @Julietteweb

You can add code by following these steps

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

.section-template--22195795263753__image_with_text_C8zzwP-padding, .section-template--22195795263753__image_with_text_fP97KP-padding { padding: 0 !important; } .section-template--22195795263753__image_with_text_C8zzwP-padding.gradient.color-scheme-3 .page-width, .section-template--22195795263753__image_with_text_fP97KP-padding .page-width { max-width: 100% !important; padding: 0 !important; }

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

Hello @Julietteweb

Go to online store ---------> themes --------------> actions ------> edit code------->base.css
at the end of the file and save.

.section-template--22195795263753__image_with_text_C8zzwP-padding.gradient.color-scheme-3 {
padding: 0px !important;
}

result

If this was helpful, hit the like button and accept the solution.
Thanks

1 Like

Hello @Moeed

Thank you for helping me so many times!

The code works well.

Do you know if I can copy this code and use it to display product images in full width too?

This code will only work for the image with text section. To display the product images in full width, add this code above in the end of theme.liquid file.

product-info#MainProduct-template--22195795263753__main {
    padding-top: 0 !important;
}
.slider.slider--mobile .slider__slide {
    margin-left: 0 !important;
    padding-top: 0 !important;
}

RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

@Moeed

It did not work

Will this also work in the Spotlight theme? I also need to make an image with text full width on my homepage.

Hey @CapitalC

Can you share your Store URL and Password if enabled?

Best Regards,

Moeed

I have been looking at this same issue for hours, have tried over a dozen suggestions and this is the ONLY thing that has worked. Thank you!