Difference between revisions of "WordPress Classic Editor Font"

Wiki.TerraBase.info
Jump to navigation Jump to search
(Created page with "If you want a font for the WordPress Classic Editor (TinyMCE) that isn't the Georgia Font (strikingly similar to the Microsoft Times New Roman font), then do the following; *...")
 
m
Line 1: Line 1:
If you want a font for the WordPress Classic Editor (TinyMCE) that isn't the Georgia Font (strikingly similar to the Microsoft Times New Roman font), then do the following;
If you want a font for the WordPress Classic Editor (TinyMCE) that isn't the Georgia Font (strikingly similar to the Microsoft Times New Roman font), then do the following;


* Create a file in the ./themes/ directory, name it anything.css (suggestion: tinymce_font.css) with the following code;<syntaxhighlight lang="text">
*Create a file in the ./themes/ directory, name it anything.css (suggestion: tinymce_font.css) with the following code;<syntaxhighlight lang="text">
body#tinymce.wp-editor {
body#tinymce.wp-editor {
font-family: Arial, Helvetica, sans-serif !important;
font-family: Arial, Helvetica, sans-serif !important;
}
}
</syntaxhighlight><br />
</syntaxhighlight>
* Then add the following code to the theme's (parent or child) functions.php file;

Revision as of 14:46, 6 January 2021

If you want a font for the WordPress Classic Editor (TinyMCE) that isn't the Georgia Font (strikingly similar to the Microsoft Times New Roman font), then do the following;

  • Create a file in the ./themes/ directory, name it anything.css (suggestion: tinymce_font.css) with the following code;
    body#tinymce.wp-editor {
    font-family: Arial, Helvetica, sans-serif !important;
    }
  • Then add the following code to the theme's (parent or child) functions.php file;