Change rich text background colour using Custom CSS

Hi,

Please could somebody tell me how I can change the background colour of a rich text section using Custom CSS. In the attached I would like to change the pink to a different colour, but I have used the 21 available Colour schemes in the Dawn theme.

Many thanks in advance.

Hi @bjohns

Do you like to only change this rich text section right?

If it is check this one.

From your Shopify admin dashboard, click on “Online Store” and then “Themes”.

Find the theme that you want to edit and click on “Actions” and then “Edit code”.

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:

.rich-text.content-container.color-scheme-2c01233e-4924-4c83-81f9-90be92a89234.gradient.section-template--22791165083955__bad69860-c21b-4a1c-a02c-b6e450659162-padding,
.rich-text.content-container.color-scheme-2c01233e-4924-4c83-81f9-90be92a89234.gradient.section-template--22791165083955__25f89c50-1795-4df0-978d-1bfd9976bc09-padding {
    background: red;
}

And Save.

Result:

Note: You can change the color you like.

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

I only want to make the change to one particular blog post template. Is it not possible to use the Custom CSS?

Is this one in the image? Yes you can paste it on the Custom css in the Customize theme.

That didn’t work. Thanks for trying though.

I figured it out. This is what I needed to add to the custom CSS.

.rich-text {
background: #aeab5b;
}

That will add all the richtext you have in your store.

Hey — in Shopify’s Dawn theme, the background colors of sections are usually controlled by the theme’s color schemes. If you’ve already used all 21 available schemes, you’ll need a bit of Custom CSS to override it.

For a rich text section, you could do something like this:

.rich-text-section {
  background-color: #yourcolor !important;
}

Replace #yourcolor with the color you want. The !important ensures it overrides the theme’s default colors. You can add this CSS in Online Store → Themes → Customize → Theme Settings → Custom CSS.

If you’d rather avoid touching code, my app EasyEdits can make this super simple — you can visually select the section and change the background color directly, and the changes stick even on a trial or new theme.

Full disclaimer: I’m the developer of EasyEdits, so feel free to reach out if you have any questions about how to make it work for your store.

Best of luck!