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.
This is an accepted solution.
@RK2024 - add this css too
.rich-text__blocks p {font-size: 14px;}
.rich-text__blocks a{color:#fff !important;}
@RK2024 - Can you please share this page link?
@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.
@RK2024 - add this css too
.rich-text__blocks p {font-size: 14px;}
.rich-text__blocks a{color:#fff !important;}
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.
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