Blogging & content · Guide
How to Change Font Color in WordPress (Step by Step)

Short answer
To change font color in WordPress, select a block and set its Text color in the Color panel of the settings sidebar. To color a few words, select them and use Highlight in the toolbar's dropdown. For the whole site, use Appearance > Editor > Styles > Colors in block themes or the Customizer in classic themes.
Key takeaways
- The Highlight tool colors selected words inside a block.
- The Color panel in block settings changes text color for a whole block.
- Styles > Colors sets site-wide text, heading and link colors in block themes.
- Classic themes use the Customizer or custom CSS for colors.
- Keep a contrast ratio of at least 4.5 to 1 for normal text.
How do you change font color in WordPress?
Select a block and set its Text color under Color in the block settings sidebar, or highlight a few words and use the Highlight option in the toolbar to color just those words.
WordPress gives you three levels of control over text color. You can color a few words, a whole block, or every piece of text across the site. The right choice depends on how far you want the change to reach.
| What you want to color | Where to do it | Theme type |
|---|---|---|
| A few words in a paragraph | Toolbar > More > Highlight > Text | Any theme with the block editor |
| A whole paragraph or heading | Block settings > Styles > Color > Text | Any theme with the block editor |
| All text, headings or links site-wide | Appearance > Editor > Styles > Colors | Block themes |
| Site-wide colors in a classic theme | Appearance > Customize > Colors | Classic themes, if supported |
| Anything else | Additional CSS or a child theme | Any theme |
How do you change the color of a few words?
Select the words, open the toolbar's dropdown arrow, choose Highlight, switch to the Text tab and pick a color.
Step by step:
- Open the post or page in the block editor
- Highlight the words you want to color
- In the block toolbar, click the small down arrow for more formatting options
- Choose Highlight
- Pick the Text tab and choose a color from the palette, or set a custom color
- Click Save or Update
The same tool has a Background tab for a marker-style highlight. WordPress.org documents these options in its guide to more rich text editing options.
Use colored words sparingly. A few emphasized phrases help readers. A rainbow of colors makes text harder to read.
The color is stored inside the post content as inline markup. That means it stays in place even if you switch themes later. It also means a site-wide color change will not affect these words, so note where you used them.
How do you change the text color of a whole block?
Select the block, open the settings sidebar, find the Color panel, click Text, and choose a color from the palette or a custom value.
This works for Paragraph, Heading, List, Quote, Group and many other blocks. In recent versions, color controls may sit under a Styles tab in the sidebar. If you cannot see Text, click the three-dot menu in the Color panel to show more options.
The Paragraph block documentation shows the color settings for paragraphs. To color several blocks at once, wrap them in a Group block and set the text color on the group.
If the block is new to you, our explainer on the WordPress block editor covers the settings sidebar and toolbar.
How do you change the font color across the whole site?
In a block theme, go to Appearance > Editor > Styles > Colors, choose Text, Headings or Links, and set new colors, then save.
Global styles change every block that uses the default color. Here is how:
- Go to Appearance > Editor
- Click Styles, then open the style settings
- Choose Colors
- Under Elements, click Text and pick a color
- Repeat for Headings, Links and Buttons if needed
- Click Save
You can also edit the theme's palette in the same panel. Changing a palette color updates every block using that color, which is often the cleanest way to rebrand. The Styles overview explains how global styles work.
Blocks with their own custom color keep it. If a heading does not change, check whether it has a block-level color set.
You can also set colors for one block type across the site. In Styles, open Blocks, choose a block such as Quote or Button, and set its text color. Every block of that type then uses the new color unless it has its own override.
How do you change the font color in a classic theme?
Go to Appearance > Customize and look for a Colors section, which many classic themes offer for body text, headings and links.
Classic themes differ a lot. Some include detailed color controls, while others offer only a background color or nothing at all. If your theme has a theme options page, check that too.
When the theme has no color option, use custom CSS. Go to Appearance > Customize > Additional CSS and add a rule such as:
body {
color: #222222;
}
h1, h2, h3 {
color: #0b3d91;
}
a {
color: #c0392b;
}
MDN's reference for the CSS color property explains the value formats you can use, such as hex, rgb and named colors.
How do you change font color in the Classic Editor?
In the Classic Editor, click the Toolbar Toggle button to show the second row of tools, select your text, and use the text color dropdown.
The text color button shows a letter A with a colored bar under it. Click the arrow next to it to choose a color, or use the custom option for an exact shade.
The color is saved as inline styling in the post. That works, but it is harder to change later across many posts, so keep custom colors for rare cases.
If you write in the Classic Editor often, consider defining a few CSS classes for your highlight colors instead. You can then switch to the Text tab and wrap words in a span with that class, which keeps colors consistent and easy to change in one place.
How do you change font color in Elementor?
Select the widget, open the Style tab, and set Text Color, or set Global Colors in Site Settings so every widget uses the same palette.
Headings, Text Editor and many other Elementor widgets have a text color control in the Style tab. For consistent design, define your brand colors once in Site Settings under Global Colors. Then choose them from the globe icon in each widget.
Inside the Text Editor widget, you can also color individual words with its own toolbar. For more on the builder, see our guide on how to use Elementor in WordPress.
How do you set colors with theme.json?
Developers can define the color palette and default text colors in the theme's theme.json file, which controls what users see in the editor.
In a block theme or child theme, the settings section of theme.json defines the palette, and the styles section sets default colors for text, headings and links. Changes here become the defaults for the whole site.
The Theme Handbook section on global settings and styles explains the structure. Make such changes in a child theme so updates do not overwrite them. Our explainer on what a child theme is covers why.
How do you keep text colors readable?
Choose text colors with enough contrast against the background, aiming for at least a 4.5 to 1 ratio for normal text, as recommended by WCAG.
Light gray text on white, or blue text on dark blue, may look stylish but is hard to read. That hurts visitors with low vision and anyone reading on a phone outside.
The W3C explains the rules in Understanding Contrast (Minimum). WordPress also warns you in the color panel when a combination has low contrast.
Pick a small palette and stick to it. Many sites work well with one dark text color, one accent color for links and buttons, and one muted color for captions and meta details. Fewer colors make pages look calmer and more professional.
Good habits:
- Keep body text dark on light backgrounds, or light on dark
- Use color to support meaning, not as the only signal
- Make links clearly different from body text
- Test colors on a phone screen in daylight
Why is your font color change not showing?
Color changes usually do not appear because of caching, a block-level color overriding the global style, or theme CSS with higher specificity.
Check these:
- Clear your cache plugin, CDN and browser cache
- Select the block and check whether it has its own color set
- Inspect the text in your browser to see which CSS rule wins
- Make sure your custom CSS selector matches the element
Our guide to CSS changes not showing covers specificity and caching in more depth.
If you also want to change typefaces, see our guide on how to change font in WordPress.
Frequently asked questions
How do I change the color of one word in WordPress?
Select the word in the block editor, click the down arrow in the block toolbar, choose Highlight, switch to the Text tab and pick a color. Save or update the post to keep the change.
Why can't I see the text color option in WordPress?
Your theme may have turned off custom colors, or the Text option is hidden in the Color panel. Click the three-dot menu in the Color panel to show more options, or check the theme's settings.
How do I change the link color in WordPress?
In a block theme, go to Appearance > Editor > Styles > Colors and choose Links. In a classic theme, use the Customizer's color options if available, or add CSS for the a element in Additional CSS.
Can I add my own brand colors to the WordPress palette?
Yes. In block themes, edit the palette in Appearance > Editor > Styles > Colors. Developers can also define palette colors in theme.json, ideally inside a child theme.
Does changing font color affect SEO?
Color itself does not affect rankings directly, but readability affects how visitors use your page. Hidden text with the same color as the background can be treated as spam, so never use it to hide keywords.
Sources
- More rich text editing options WordPress.org Documentation
- Paragraph block WordPress.org Documentation
- Styles overview WordPress.org Documentation
- Global Settings and Styles WordPress Theme Handbook
- color MDN Web Docs
- Understanding Contrast (Minimum) W3C Web Accessibility Initiative
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


