Monday, November 22, 2010

How to Change the Default Height Of The Text Editor in WordPress

If you have noticed, the visible area of the text editor in WordPress is very small. Most of the time, you will have to drag the right bottom corner of the text area to enlarge it. Worst still, you have to do that every time.

Here's a quick hack to change the default height of the text area.

Open your theme's functions.php file. Copy and past the following code.

[php]add_action('admin_head', 'content_textarea_height');
function content_textarea_height() {
echo'<style type="text/css">
#content{ height:500px; }
</style>';
}[/php]

Upload the functions.php back to your server.

Note: The above code set the default height to be 500px. You can change it to the height you want.

No comments:

Post a Comment