• I need to know what I can add to my functions.php (or another method?) to make the metabox for entering the Excerpt (on the Post/Page Add/Edit screen) larger as a default. We use that box for a specific purpose but as it only shows three lines – and the entered text is more than three lines – it means scrolling that we’d like to eliminate.

    How can I make the size of that box be something like 10 lines?

    Thanks for any advice!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    The height comes from wp-admin/css/wp-admin.css:

    #excerpt,
    .attachmentlinks {
    	margin: 0;
    	height: 4em;
    	width: 98%;
    }

    or more specifically, the minified version. Try enqueuing a custom admin style from the ‘admin_enqueue_scripts’ action to override this. You could also override it with javascript enqueued from the same action.

    Thread Starter TrishaM

    (@trisham)

    Thanks bcworkz – I’ll give that a try. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Modify size of Excerpt MetaBox’ is closed to new replies.