When I'm editing a post, the text looks too small. I want larger text while editing.

Note that I'm not referring to increasing the text in the resulting post ... I mean the text as it is displayed while I am editing, only.

I've looked at Settings under "Writing" and I see I can change the number of lines in the editor to make the edit area larger to fill more of my screen, but how can I make each of those lines render in a larger font?


Put this on the top of your functions.php file after the first <?php

add_action( 'admin_print_styles-post.php', 'my_admin_css' );
add_action( 'admin_print_styles-post-new.php', 'my_admin_css' );
function my_admin_css() {
<style type="text/css">
#editorcontainer textarea#content { font-size:130%!important }

The function will print out the additional CSS on the pages where you write posts only (so it's not loading on every admin page), and applies a font size increase ... adjust as required.. Source

The above code will work for HTML mode, for Visual mode, edit the editor-style.css, it's included with the theme .. (it's used to make the Visual editor render text the same as it's shown on front side of your side of your site - you're of course welcome to make changes to that file). Source

I hope that helps.

| improve this answer | |
  • Thanks - I just tried. It does increase the font size in my HTML editor, but not in my visual editor. – Chris W. Rea Nov 26 '11 at 17:56
  • 2
    @ChrisW.Rea Did you edit the font-size in the editor-style.css? That should change the size of the font in the visual editor. – John Bentwin Nov 26 '11 at 18:05
  • Yes, thanks for mentioning that. I just came across editor-style.css as mentioned here: deluxeblogtips.com/2010/05/editor-style-wordpress-30.html .. solved my problem. Now I can write without having to squint :-) – Chris W. Rea Nov 26 '11 at 19:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.