Image full width in section image with text - Dawn Theme

Solved

Image full width in section image with text - Dawn Theme

Julietteweb
Excursionist
58 0 10

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!

 

image-full-width-dawn-theme-desktop-1.pngimage-full-width-dawn-theme-desktop-2.pngimage-full-width-dawn-theme-mobile-1.pngimage-full-width-dawn-theme-mobile-2.png

Accepted Solution (1)

Moeed
Shopify Partner
5430 1470 1754

This is an accepted solution.

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 </body> tag

<style>
.section-template--22195795263753__image_with_text_C8zzwP-padding.gradient.color-scheme-3 .page-width {
    padding: 0 !important;
}
.section-template--22195795263753__image_with_text_C8zzwP-padding.gradient.color-scheme-3 {
    padding: 0 !important;
}
</style>

RESULT:

Moeed_0-1727691758526.png

 

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

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 6 (6)

Moeed
Shopify Partner
5430 1470 1754

This is an accepted solution.

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 </body> tag

<style>
.section-template--22195795263753__image_with_text_C8zzwP-padding.gradient.color-scheme-3 .page-width {
    padding: 0 !important;
}
.section-template--22195795263753__image_with_text_C8zzwP-padding.gradient.color-scheme-3 {
    padding: 0 !important;
}
</style>

RESULT:

Moeed_0-1727691758526.png

 

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

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


Julietteweb
Excursionist
58 0 10

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?

Moeed
Shopify Partner
5430 1470 1754

This code will only work for the image with text section. To display the product images in full width, add this code above </style> 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:

Moeed_0-1727694920424.png

 

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

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


Julietteweb
Excursionist
58 0 10

@Moeed 

It did not work

Tech_Coding
Shopify Partner
309 80 71

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 </body> on theme.liquid
<style>
  .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;
  }
</style>

Tech_Coding_0-1727691944635.pngTech_Coding_1-1727691970458.png

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

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.
Shopify UI Developer
Your Coffee Tips adds a little sweetness to my day.

GTLOfficial
Shopify Partner
551 117 108

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
6.png

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

- Buy me a Pizza
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on the store Hire me. GTL web solutions
- Want Complete Storefront: Send an email ⇨- Email: [email protected] - Skype: ritesh_27dh