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!
Moeed
September 30, 2024, 10:22am
2
Hey @Julietteweb
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
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
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
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
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
September 30, 2024, 11:15am
6
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
Will this also work in the Spotlight theme? I also need to make an image with text full width on my homepage.
Moeed
October 10, 2024, 6:18am
9
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!