How to make rich text smaller in the mobile version?

Solved

How to make rich text smaller in the mobile version?

Tinctoria
Tourist
16 0 2

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

Accepted Solution (1)

niraj_patel
Shopify Partner
2378 514 511

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>

niraj_patel_0-1722949711370.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com

View solution in original post

Replies 2 (2)

niraj_patel
Shopify Partner
2378 514 511

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>

niraj_patel_0-1722949711370.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com

BSS-TekLabs
Shopify Partner
1842 526 612

- Here is the solution for you @Tinctoria 
- Please follow these steps:

z5686811214059_e66de1953f1db631f9134af5cdb796ad.jpg

- 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:

BSSTekLabs_0-1722949960671.png

 

 

 

- 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 .
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
BSS Commerce - Full-service eCommerce Agency

For give Gift to customers and Upsell in Cart, check out Salepify: Free Gifts with purchase


Post purchase upsell, downsell offers to improve sales and AOV
Salemate Post Purchase Upsell