Modify size of Excerpt MetaBox (3 posts)

  1. TrishaM
    Posted 2 years ago #

    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!

  2. bcworkz
    Posted 2 years ago #

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

    .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.

  3. TrishaM
    Posted 2 years ago #

    Thanks bcworkz - I'll give that a try. :-)

Topic Closed

This topic has been closed to new replies.

About this Topic