WordPress.org

Ready to get started?Download WordPress

Forums

How to hide the Excerpt field in Write Post? (3 posts)

  1. Dgold
    Member
    Posted 8 years ago #

    Where in the admin files is the code that displays the Excerpt Field in Write Post? I want to delete it because I don't want my writers to make their own excerpt. We'll only use the automatic excerpt. I want to save space and remove this field in the Admin > Write Post. I've searched inside wp-admin/post.php with no luck. I went into wp-admin/wp-admin.css and put display:none; on the Excerpt field, which hides it except for the hyperlinked word "Excerpt" that links to the Codex/Help. Therefore, does anyone know what part of wp-admin has the layout for the Post form? If it is post.php, anyone know what lines I can remove to delete the Excerpt field?

    This is WordPress 1.5.2 and the output generated in my source code that I want to get rid of is this:

    <fieldset id="postexcerpt">
    <legend><a href="http://wordpress.org/docs/reference/post/#excerpt" title="Help with excerpts">Excerpt</a></legend>
    <div><textarea rows="1" cols="40" name="excerpt" tabindex="4" id="excerpt"></textarea></div>
    </fieldset>

  2. moshu
    Member
    Posted 8 years ago #

    I think it's in wp-admin/edit-form-advanced.php

  3. Dgold
    Member
    Posted 8 years ago #

    Right you are, Moshu. Thanks. WordPress isn't all that hard when you find what you're looking for!

    I removed this code from my Manage > Files > Other Files > wp-admin/edit-formadvanced.php and it's working so far:

    <fieldset id="postexcerpt">
    <legend><a href="http://wordpress.org/docs/reference/post/#excerpt" title="<?php _e('Help with excerpts') ?>"><?php _e('Excerpt') ?></a></legend>
    <div><textarea rows="1" cols="40" name="excerpt" tabindex="4" id="excerpt"><?php echo $excerpt ?></textarea></div>
    </fieldset>

Topic Closed

This topic has been closed to new replies.

About this Topic