trebag
February 28, 2024, 1:31pm
1
A while ago I changed something somewhere in the code that made the rich text block width limited (see image).
I want this to be full width on mobile but I cannot find where to change this in the code.
I also want to change the image banner further down on the page to full width.
Any ideas?
Site is: https://haget.co/products/haget-swim-shorts
@trebag do you want to show like this ?
or remove white side space ?
trebag
February 28, 2024, 1:57pm
3
Sorry for the confusion. I want to remove the side white space and make it full width. Same thing with the image banner a bit down on the page.
@trebag Add below css in your main css file
.rich-text__wrapper.rich-text__wrapper--center {
margin: 0px !important;
justify-content: center;
min-width: 100%;
}
isolate {
padding: 0px;
}
Add below css in you customizer section
.shopify-section{
padding: 0px !important;
}
trebag
February 28, 2024, 2:15pm
5
Changed the code file which made the text go further out but the blue container is still fixed.
Not possible to add that to the custom CSS in editor:
Hello @trebag
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
@media screen and (max-width: 767px) {
section#shopify-section-template--18570346791255__7ee9fa8b-f478-4b4c-938c-f026b7f5aa98 {
padding-left: unset !important;
padding-right: unset !important;
}
}
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Welcome @trebag
Was my reply helpful? Click Like to let me know!
trebag
February 29, 2024, 10:34am
9
Btw, to add this to more sections, do I need to do it for all of them separately, or can I just add more sections to the same code? Like:
@media screen and (max-width: 767px) {
section#shopify-section-template--18570346791255__7ee9fa8b-f478-4b4c-938c-f026b7f5aa98 **& shopify-section-template--2389472378942__7sd737fs7yvjskljsij832**{
padding-left: unset !important;
padding-right: unset !important;
}
}
@media screen and (max-width: 767px) {
section#shopify-section-template--18570346791255__7ee9fa8b-f478-4b4c-938c-f026b7f5aa98,
section#shopify-section-template--2389472378942__7sd737fs7yvjskljsij832 {
padding-left: unset !important;
padding-right: unset !important;
}
}
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Was your question answered? Mark it as an Accepted Solution.
Thanks