Add Custom Font To TinyMCE Editor WordPress

/**
 * Add Custom Font To TinyMCE Editor
 * Will not load the font family in the backend, to do this use add_editor_style
 * Will not load the font in the front-end to do this just use @import in your custom CSS location or child theme
 */
function my_wpex_mce_font_formats_array( $fonts ) {
	$fonts[] = 'Crimson Text';
	return $fonts;
}
add_filter( 'wpex_mce_font_formats_array', 'my_wpex_mce_font_formats_array' );
See also  How to Trigger 404.php Template WordPress

Leave a Reply

Your email address will not be published. Required fields are marked *