I’m currently writing a bit bigger tutorial on creating a custom contact page in WordPress and the tiny content area we have when we add/edit a post/page is making me feel lost all the time. So i used a little trick to increase the height and thought someone else might also find it useful so here it is.
The code bellow goes in your theme’s functions.php file.
add_action('admin_head', 'content_textarea_height');
function content_textarea_height() {
echo'
<style type="text/css">
#content{ height:500px; }
</style>
';
}
It works for everything where we have the WYSIWYG editor (posts, pages, comments).
Our WordPress themes
We have a few WordPress themes that we would like you to take a look at if you want.
check out the portfolio











Great tip! Going to implement it right now, thanks
@Omer – Glad you like it, it’s so simple yet so useful
Excellent tip! I always thought the height of the editor was way to small/narrow.
Thanks for this tip!
You’re welcome Martin
Nice! Been looking for that one for awhile… so annoying to drag open the editor every time I start writing a new post.
Thanks for sharing Boba!
You’re welcome Jen
Umm, why not just adjust the setting in the ‘writing’ panel to 30 lines (or whatever you need)?
Probably, I’m not seeing forest for trees here?
@MTCreations – This is the first time i see that option and probably a lot more people didn’t see it, but i’ll stick to the CSS hack anyway.
Thought to myself, ‘this editor is tiny’. Googled it, found this site, problem resolved in 3 mins.
Great quick tip.
Cheers
Fabulous tip, thanks for sharing!!!
Hi Boba, this tip is so awesome!! I looked for something like this for weeks… Thank you so much!
Now I have a question: do you know how to use the same code but to increase the category list height in the write post panel? I have many categories and the table height is not helping, too short…
Since you’re wordpress-PHP-savvy, I’m asking just in case you may have a solution
Interesting question Sullivan and i got a very interesting idea involving jQuery, check back tomorrow, i should have it posted then. Will also include a simple solution with CSS besides the jQuery one.
Hi Boba! I just sent a comment on another post on your site so I was just checking by if you had found some time to take a look at how to increase the category list height in the write post panel.
I was on a little vacation, just came back. Should get it posted on Monday.
Ok, great
Have a nice weekend!
thanks for sharing this tip , work fine
Thanks for the snippet!
The should make the content area a little bit higher by default, but this does the trick to.
great great post
Works like a charm, keep up the good stuff