Help Advanced design

Change colours with custom.css

Change your store's main colour, or add your own styles, with a few lines of CSS in a file that's kept safe from updates.

Advanced

This is an Advanced article

For most changes, use the visual Divi editor instead: see Edit your homepage and other pages and Change the header and footer. Use CSS only for things Divi can't do. If you'd rather we did it, see Getting help.

Where your store's styles live

Your store uses a WordPress theme called MemberShops Elegance. It's a "child theme" of Divi: it builds on Divi, so Divi can be updated without losing your store's look.

We update the child theme from time to time too, so don't edit its style.css: your changes would be lost. Use the file made for you: custom.css. Changes there are never overwritten.

Open custom.css

  1. Log in to WordPress (your-domain.com/wp-admin).
  2. Click Appearance → Theme File Editor.
  3. On the right, under Theme Files, click custom.css.
Appearance → Theme File Editor, with the theme's files listed on the right
Appearance → Theme File Editor, with the theme's files listed on the right

Example: change the main colour

Add this line to custom.css, with your own colour code:

:root { --shop-theme-color-1: #14b8a6; }

This changes the main colour used for links and highlights across your store. (Things you've coloured yourself in the Divi editor keep their own colour.)

To find a colour code, search for "colour picker" in Google, choose a colour and copy the code that starts with #.

Save

Click Update File. WordPress may show a warning, because it doesn't fully recognise the colour variable. That's expected: tick Update anyway, even though it might break your site? and click Update File again.

The Theme File Editor warning, with the "Update anyway" box ticked
The Theme File Editor warning, with the "Update anyway" box ticked

Check it worked

Open your store and refresh while holding Shift. Links and highlights (for example in the header) should be in your new colour.

If something goes wrong

Remove the line you added from custom.css and click Update File. Your store goes back to how it was.