Learn how to safely add font color in WordPress using Gutenberg, the Classic Editor with a plugin, or custom CSS — no core file edits required. This tutorial covers all three methods.
How to Add Font Color in WordPress
1. Gutenberg Editor (Default WordPress Editor)
WordPress 5.0+ uses the Gutenberg block editor. Each block (paragraph, heading, list) can have its own text and background color.
- Select the block you want to style (e.g., a paragraph or heading).
- On the right sidebar, under Color Settings, click Text Color or Background Color.
- Pick a color from the palette or enter a custom hex code.
- The block will instantly show the selected color.
2. Classic Editor (TinyMCE) Using a Plugin
If you still use the Classic Editor, you can safely add a font color button using a plugin instead of editing core files.
- Install the plugin Advanced Editor Tools (formerly TinyMCE Advanced) from the WordPress plugin repository.
- Activate the plugin and go to Settings → Advanced Editor Tools.
- Drag the Text Color button to your toolbar.
- Save changes. The text color button will now appear in the Classic Editor.
- Select text in your post and use the color picker to change the font color.
3. Using Custom CSS Classes
For site-wide or reusable text colors, CSS classes are a clean solution.
- Go to Appearance → Customize → Additional CSS.
- Add custom classes like the following:
.text-red { color: #ff0000; }
.text-blue { color: #0073aa; }
- In Gutenberg or Classic Editor, assign the CSS class to a block or paragraph.
- Your text will display in the selected color.
FAQ: Font Color in WordPress
Can I change font color in Gutenberg without plugins?
Yes. Gutenberg has built-in text and background color settings for each block, so no plugin is needed.
Does this work on the Classic Editor?
Yes, but you need a plugin like Advanced Editor Tools to safely add font color options.
Is it safe to edit TinyMCE core files?
No. Editing tiny_mce_config.php
or other core files can break updates and is not recommended.
Summary
Adding font color in WordPress today is much easier and safer than editing core TinyMCE files. Use Gutenberg’s built-in block color settings, the Classic Editor with WYSIYG Advanced Editor Tools, or custom CSS for consistent, reusable styling. This ensures your changes remain compatible with future WordPress updates.