Is someone able to help me stretch my rich text all the way out in line with my header icons?
Thanks so much.
Password: ellacoker
A user is experiencing layout issues with rich text sections on their Shopify Dawn theme store. The primary problem involves rich text content not extending to full width to align with header icons.
Resolution for Desktop:
.page-width and .rte div did not resolve the issuetheme.liquid file targeting .rich-text__blocks with max-width: 100% and width: 100% for screens above 750pxOutstanding Issue:
Status: Partially resolved - desktop width issue fixed, mobile centering solution still needed
Is someone able to help me stretch my rich text all the way out in line with my header icons?
Thanks so much.
Password: ellacoker
Hi Ellacoker
@media screen and (min-width: 750px) {
.rte div {
text-align: left !important;
}
.page-width {
max-width: 95% !important;
}
}
Result:
Best,
Liz
Hi Liz, unfortunately this didnt work. The text alignment is fine. On each page it just doesnt seem to extend the full width. There is a code somewhere which prevents it from extending all the way (to the right). Any other ideas? Thank you
Hello @ellacoker , I see you are using DAWN tneme by shopify for your store.
You can add below code by following these steps to make richtext fullwidth
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
hi Niraj, wow thank you so much. That worked. Are you able to solve my other problem too? On mobile version i would like it all centred.
Hi @ellacoker
I wanted to provide clarification regarding the text alignment with the icon. The text has already been aligned horizontally with the icon. However, it cannot fully extend to both margins because the alignment depends on the length of the following text.
If the text is too long, it will automatically wrap to the next line, leaving a gap at the end of the initial line.
Best,
Daisy - Avada Support Team.
Hi Daisy, Thank for you clarifying this. I understand. However, do you know how to centre the text on these pages in mobile version?
Ella