Remove some padding around rich text

Hello,

I would like to remove some of the padding around my rich text boxes (mobile mode) on the product pages.

How do I go about this?

Thanks, Ella.

URL: https://www.samiyaskincare.com.au/products/root-chakra-face-mask

PW: ellacoker

1 Like

Hi @ellacoker

TRy this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (max-width: 749px){
.rich-text__wrapper.rich-text__wrapper--left.page-width {
    margin: 0 !important;
    width: 100% !important;
}

.section-template--24209589993766__rich_text_C8dtF9-padding h2.rich-text__heading {
    margin-top: 0;
}
.section-template--24209589993766__rich_text_C8dtF9-padding {
    padding: 0 !important;
}
}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

Perfect it worked. Thank you so much.

Ella.

Welcome, Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

Hi Ellacoker

You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file

.rich-text__wrapper.rich-text__wrapper--left.page-width {
    padding: 5px !important;
}

Result:

Best,
Liz