Shopify themes, liquid, logos, and UX
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!
Solved! Go to the solution
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:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
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:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
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 </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:
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 </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>
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
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024