WordPress.org

Ready to get started?Download WordPress

Forums

Modify size of Excerpt MetaBox (3 posts)

  1. TrishaM
    Member
    Posted 7 months 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
    Member
    Posted 7 months ago #

    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.

  3. TrishaM
    Member
    Posted 7 months ago #

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

Reply

You must log in to post.

About this Topic