Changing the Font Size of WordPress’s Visual Editor

Posted on In Web

The font size of WordPress’s visual editor is too small for me on my screen display. The default font size is 13px which is hard for my eye on my screen. There are two ways to change the default font size in the visual editor. One is changing WordPress’s css file for the editor while the other is using a plugin.

Method 1: Change WordPress’s CSS file

This is the most direct way. This method will apply to all the contributors’ editors.

The CSS file for the visual editor’s font is: wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css in WordPress’s installation directory.

First download this file and open if with an text editor that you like. Then find these lines:

body.mceContentBody {
    font: 13px/19px Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
    padding: 0.6em;
    margin: 0;
}

The font here specifies the font size of WordPress’s visual editor. If we want to change the font size to 16px, just change that line to:

font: 16px/19px Georgia, "Times New Roman", "Bitstream Charter", Times, serif;

Then save this CSS file and uploaded to the hosting server. It’s done!

Method 2: Use WordPress plugin

This method will not modify WordPress’s files. But it requires us to install a plugin: Visual Editor Font Size

After installing this plugin, you will find a “Visual Editor Font Size” tool bar under the editor (maybe a little far away from it). You can click the “+” and the “-” button to make the font larger or smaller.

Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

4 comments

    1. Hi Bruce Lewin, I am very glade to know that this helps you out. But remember to do this again next time that you update WordPress.

      1. Yep – I’ve made a note of that and the line number etc. 42 I believe – but that’s bound to change in the next version!

Leave a Reply

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