Shopify themes, liquid, logos, and UX
Hi Shopify Community,
I have added a new Rich Text block on my Shopify store page, Refresh theme, and the text is quite narrow and I would like to widen it. I have searched for solutions on this forum but none of them has worked so far, like adding CCS codes in theme.liquid or changing rich text blocks in section-rich-text.ccs (they are for different themes). Can someone please advise me how I can do it? Thanks a lot in advance.
Solved! Go to the solution
This is an accepted solution.
@RK2024 - 2 things
1] css needs to be set at 100 rem for your text, please add this css to the very end of your base.css file and check,
@media screen and (min-width: 990px) {
.rich-text__blocks {max-width: 100rem;}
}
2] remove the <br> tags used in description, either those tags are used or enter has been pressed after few lines creating short lines
This is an accepted solution.
Hello @RK2024
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>
@media screen and (min-width: 990px) {
.rich-text__blocks {
max-width: 100% !important;
}
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
This is an accepted solution.
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>
.rich-text__blocks .rich-text__text.rte.scroll-trigger.animate--slide-in p {
font-size: 19px !important;
}
.rich-text__text.rte.scroll-trigger.animate--slide-in p a {
color: #fff !important;
text-decoration: none !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
@suyash1 thank you. The link below. The rich text I want to widen starts from 'Welcome to our online...'.
This is an accepted solution.
@RK2024 - 2 things
1] css needs to be set at 100 rem for your text, please add this css to the very end of your base.css file and check,
@media screen and (min-width: 990px) {
.rich-text__blocks {max-width: 100rem;}
}
2] remove the <br> tags used in description, either those tags are used or enter has been pressed after few lines creating short lines
@suyash1 thanks so much, that worked! Also, do you know by any chance how I can reduce the font size in this rich text? There is quite a bit of this text to scroll down and I want to keep all text for the SEO purpose, but could potentially reduce the font. And also, I have just changed scheme colour to fit my branding colours - do you know how to change the clickable links colour from dark blue to white in this rich text? Currently they are hardly visible.
Thanks again for your help!
This is an accepted solution.
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>
.rich-text__blocks .rich-text__text.rte.scroll-trigger.animate--slide-in p {
font-size: 19px !important;
}
.rich-text__text.rte.scroll-trigger.animate--slide-in p a {
color: #fff !important;
text-decoration: none !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
This is an accepted solution.
Hello @RK2024
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>
@media screen and (min-width: 990px) {
.rich-text__blocks {
max-width: 100% !important;
}
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025