• Resolved Inv_Trdr

    (@inv_trdr)


    Is it possible to make the content block for pages and posts slightly longer so in case of longer pages or posts you do not need to scroll a lot in the Visual Editor? I am referring to the block where we add text, images etc. in WP.
    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Easiest way is to hook a function onto the admin head..

    Add this to the functions.php for your theme, adjust 400px to suit what you want..

    function increase_postarea() {
    	?>
    	<style type="text/css">
    		textarea#content {
    			height:400px
    		}
    	</style>
    	<?php
    }
    if(is_admin()) : add_action('admin_head', 'increase_postarea' ); endif;

    Tested before posting.. 😉

    NOTE: Make sure this code sits inside the PHP tags..

    Thread Starter Inv_Trdr

    (@inv_trdr)

    Thanks. Where exactly do I insert this in the functions.php file?
    Thanks.

    Thread Starter Inv_Trdr

    (@inv_trdr)

    Is the height and width of the post area not in the functions.php by default? It seems easier to change pixels from within rather than add extra code.
    Thanks.

    no you add it to functions.php so as not to have to continually modify core files on upgrades

    Anywhere after the opening <?php tags and before the closing ?> tag.

    Thread Starter Inv_Trdr

    (@inv_trdr)

    Thanks.

    So i take it you got it working ok then.. 🙂

    ————>

    Mark as resolved to the right of the thread.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Adding space to the Admin interface.’ is closed to new replies.