How to Add Custom Fonts to the Advanced Editor Tools Font Family List
Content
Many WordPress users who rely on the Advanced Editor Tools plugin (formerly TinyMCE Advanced) want to use custom or Google Fonts in the classic editor. A common point of confusion is that the plugin's Font Family dropdown does not automatically show fonts added to your theme. This article explains why this happens and provides the most common methods to add your fonts to the list.
Why Your Custom Fonts Don't Appear Automatically
The font list in the Advanced Editor Tools dropdown is a core setting of the TinyMCE editor itself, separate from your theme's stylesheet. By default, it only shows a standard set of 'web-safe' fonts that are likely to be available on a visitor's computer. As noted in the support threads, the Advanced Editor Tools team has indicated that automatically pulling in fonts from a theme is complex and not currently a feature of the plugin. Therefore, to use custom fonts, you must manually configure the editor's font list and ensure the fonts are properly enqueued on your site.
Method 1: Use a Helper Plugin (Recommended for Non-Coders)
The simplest way to modify the font list is by using a dedicated configuration plugin. The 'Advanced TinyMCE Configuration' plugin is frequently recommended in support forums for this purpose.
- Install and activate the Advanced TinyMCE Configuration plugin.
- Go to Settings > Advanced TinyMCE Config in your WordPress dashboard.
- Find the setting for
font_formats. - Enter your custom font list in the required format. The list must be a single line, with each font family defined by its name and a fallback, separated by a semicolon. For example:
Andale Mono=andale mono,times; Arial=arial,helvetica,sans-serif; My Custom Font=my-custom-font, sans-serif;
- Save the changes.
Important: This method only adds the font to the dropdown menu. You must still load the font files on your website using your theme's functions.php file or a plugin like 'Easy Google Fonts'.
Method 2: Add Code to Your Theme's functions.php File
For users comfortable with code, you can use the tiny_mce_before_init filter hook to directly modify the editor's settings.
- Add the following code to your child theme's
functions.phpfile to avoid losing changes on theme updates. - Replace the example font string with your own list.
add_filter( 'tiny_mce_before_init', 'my_custom_fonts' );
function my_custom_fonts( $init_array ) {
// Define your custom font list
$custom_fonts = 'My Custom Font=my-custom-font, sans-serif; Another Font=another-font, serif;';
// Apply it to the 'font_formats' setting
$init_array['font_formats'] = $custom_fonts . ';' . $init_array['font_formats'];
return $init_array;
}
Again, this code only manages the list in the editor. You are responsible for ensuring the font is properly enqueued on both the front end of your site and in the editor using an editor-style.css file.
Important Considerations and Limitations
- Font Availability: Simply adding a font to the dropdown does not make it appear for your site visitors. The font files must be hosted and loaded via CSS on your website.
- Web-Safe Fonts: The default list is limited for a reason. If you use a obscure custom font, visitors who haven't downloaded it will not see it unless you have implemented web font loading correctly.
- Future Development: Based on community feedback, the Advanced Editor Tools team has mentioned the possibility of creating a separate plugin for more robust font management in the future, but this is not currently available.
By following these methods, you can integrate your brand's typography directly into the WordPress editing experience. Always remember to test your changes thoroughly.
Related Support Threads Support
-
How to add custom fonts to "font family" listhttps://wordpress.org/support/topic/how-to-add-custom-fonts-to-font-family-list/
-
Add fonts in menu font familyhttps://wordpress.org/support/topic/add-in-fonts-menu/
-
Adding Font Familieshttps://wordpress.org/support/topic/adding-font-families/
-
How to Add a New Font to Advanced Editor Tools?https://wordpress.org/support/topic/how-to-add-a-new-font-to-advanced-editor-tools/
-
Cursive fonthttps://wordpress.org/support/topic/cursive-font/
-
Add a custom font to the pluginhttps://wordpress.org/support/topic/add-a-custom-font-to-the-plugin/
-
Add other custom fonts or google fontshttps://wordpress.org/support/topic/add-other-custom-fonts-or-google-fonts/
-
Theme exhaustive font list doesn’t appears in dropdownhttps://wordpress.org/support/topic/theme-exhaustive-font-list-doesnt-appears-in-dropdown/
-
i need to display more Font-familyhttps://wordpress.org/support/topic/i-need-to-display-more-font-family/
-
How to add Calibre font family to optionshttps://wordpress.org/support/topic/how-to-add-calibre-font-family-to-options/
-
Show Custom Fonts In Font Family Dropdown Boxhttps://wordpress.org/support/topic/show-custom-fonts-in-font-family-dropdown-box/
-
How to Add Font Familyhttps://wordpress.org/support/topic/how-to-add-font-family/
-
How do I install more fontshttps://wordpress.org/support/topic/how-do-i-install-more-fonts/
-
How to add new font?https://wordpress.org/support/topic/how-to-add-new-font-1/
-
Custom fonts dropdown menuhttps://wordpress.org/support/topic/custom-fonts-dropdown-menu/
-
Can’t see WP Fonts in the editorhttps://wordpress.org/support/topic/cant-see-wp-fonts-in-the-editor/
-
Add & Upload Fontshttps://wordpress.org/support/topic/add-upload-fonts/
-
Add more fontshttps://wordpress.org/support/topic/add-more-fonts/
-
Google Font Supporthttps://wordpress.org/support/topic/google-font-support/
-
Add more Custom Fonthttps://wordpress.org/support/topic/add-more-custom-font/