Change default font style used by your WordPress post editor by following two simple steps.
- Open your active theme’s function.php file.
- Copy and paste the following code changing your font style:
add_action( ‘admin_head-post.php’, ‘cwc_fix_html_editor_font’ );
add_action( ‘admin_head-post-new.php’, ‘cwc_fix_html_editor_font’ );function cwc_fix_html_editor_font() { ?>
<style type=”text/css”>#editorcontainer #content, #wp_mce_fullscreen { font-family: Georgia, “Times New Roman”, “Bitstream Charter”, Times, serif; }</style>
<?php }
Note: In the above code you can change your font style on this line code:
<style type=”text/css”>#editorcontainer #content, #wp_mce_fullscreen { font-family: Georgia, “Times New Roman”, “Bitstream Charter”, Times, serif; }</style>