Shopify themes, liquid, logos, and UX
I want to change the font size of my rich text sections, and make the text smaller (ONLY for the mobile version).
Here is my website link for reference: https://0a272e-93.myshopify.com/
what code can i apply to do this? (preferably something to add to the theme.liquid file
Solved! Go to the solution
This is an accepted solution.
Hello @Tinctoria
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 (max-width: 767px) {
.rich-text-description p {
font-size: 14px !important;
}
#shopify-section-template--17174517579942__rich_text_9Yd4ag .rich-text-description{
padding: 0 !important;
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.
Hello @Tinctoria
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 (max-width: 767px) {
.rich-text-description p {
font-size: 14px !important;
}
#shopify-section-template--17174517579942__rich_text_9Yd4ag .rich-text-description{
padding: 0 !important;
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.
- Here is the solution for you @Tinctoria
- Please follow these steps:
- Then find the base.css or theme.css or theme.min.css file.
- Then add the following code at the end of the file and press 'Save' to save it.
@media only screen and (max-width: 600px) {
.rich-text-content .content-heading {
font-size: 22px !important;
}
.rich-text-content .rich-text-description p{
font-size: 14px !important;
}
.rich-text-description {
padding: 5% !important;
}
}
- Here is the result you will achieve:
- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
Discover 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, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025