How To Change Default Font Style Used By Your WordPress editor ?

Change default font style used by your WordPress post editor by following two simple steps.

  1. Open your active theme’s function.php file.
  2. 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>

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.