Set up your site colors
Add your brand colors to the Color Palette and Marketers Delight uses them for links, buttons, the header, and the block editor. When you change a palette color later, every setting linked to it changes with it.
Before you start
- You need an Administrator account on a site running Marketers Delight 6.0 or later.
- Have your brand colors ready as hex values, such as
#C0392B.
Add your palette
- In WordPress, go to Theme → Settings and open the Design tab.
- Open Color Palette.
- Enter a hex value for each color you want to change, or choose one with the picker. Colors you leave alone keep the theme default. The undo icon beside a color restores its default.
- Select Save.
The palette has eleven colors: Background, Surface, Primary, Secondary, Tertiary, Divider, Highlight, Text Main, Text Secondary, Button, and White.
See where each color is used
Out of the box, these settings point at palette colors. Change the palette color and each of them follows.
| Palette color | Used by default for |
|---|---|
| Background | Site background |
| Text Main | Site text |
| Text Secondary | Muted text |
| Primary | Links, header menu link hover, and links inside the content box |
| Button | Primary button background |
| Secondary | Secondary button background |
| Surface | Main background behind the content box, and the panel background |
| Divider | Content border and panel border |
Tertiary, Highlight, and White are not used by a setting until you choose them. They are always available in the color pickers and the block editor.
Add colors beyond the palette
- In Color Palette, select Add Color.
- Pick the Color and enter a Name, such as Brand Teal.
- Leave Key blank to use the name as the key (
brand-teal), or enter your own. - Select Save.
The key is the color's identifier in the block editor and in the helper classes below, so keep it short and unique. A key that matches a built-in color, such as primary, replaces that color.
Link a setting to the palette, or set it apart
Each color setting on the Design screen, such as those under Site Colors, Actions, Header and Navigation, Content, Sidebar, Panel, and Footer, has a menu with three sources:
- Theme default uses the built-in value. Some settings inherit another one, and the menu says so, for example Inherits: Text.
- Global palette links the setting to a palette color. If you change that palette color later, the setting changes too.
- Custom color is a hex value that belongs to that setting alone. It shows Not linked to palette, so later palette changes do not affect it.
Use your colors in the editor
Palette colors, including any you added, are available as presets in the block editor. The classic editor does not list them, so you add a helper class to the markup there.
Block editor
Classic editor
- Select a block, then open its settings in the sidebar.
- For text, open Typography and select Color. For a background, open Background and select Color.
- Pick a color under Theme. Each swatch carries the name you gave that color.
- Switch to the Text tab.
- Add a helper class to the element:
<span class="has-primary-color">Highlighted words</span>. - Use
has-KEY-colorfor text,has-KEY-background-colorfor a background, orhas-KEY-border-colorfor a border, replacing KEY with the color's key.
Check the result
Open your site in a new tab. Links, buttons, and the header menu should show your new colors. If a setting still shows an old color, open its menu on the Design screen. It is probably set to a Custom color, which a palette change does not affect. If nothing changed, clear your caching plugin's cache and reload.



