WordPress.org

Ready to get started?Download WordPress

Forums

Remove some post boxes (9 posts)

  1. happykev
    Member
    Posted 7 years ago #

    Under "Write Post" page, they're too many of option boxes. I would like to remove them and just leave the writing box.

    Some option box i would like to remove are:

    File uploader box
    Optional Excerpt box
    Trackbacks
    Custom Fields
    Post Timestamp box on the right hand side.

    Could someone please tell me which .php file i should modify? I just can't find it. Is post.php?

    Thanks for your help/

  2. Michael Bishop

    Posted 7 years ago #

    Not a solution, but you can close the box using the '+' and '-' symbols on the right, and normally, the value is remembered the next time you go to write a post. That way, incase you ever do need the feature, you can expand the box and it's there.

    For everything except the image/file uploader

  3. You can hide (not actually remove) the upload box by editing wp-admin\wp-admin.css.

    Look for #uploading {

    and add

    display: none;

    to the definition.

    Or if you want to avoid editing the file every time you upgrade, try this plugin:

    <?php
    /*
    Plugin Name: Customise Post Page
    Plugin URI: http://lcb.me.uk/losingit/
    Description: Hides the upload area from the post page. Based on work by Mike Purvis (http://www.uwmike.com)
    Author: Les Bessant
    Author URI: http://lcb.me.uk/losingit/
    Version: 0.1
    */

    add_action('admin_head', 'hide_upload_box');

    function hide_upload_box() {
    global $parent_file;

    if ('post.php' == $parent_file) {
    echo '<style type="text/css">#uploading { display: none; } </style>';
    }
    }
    ?>

    Mike Purvis posted the original on one of the mailing lists, I adapted it for hiding the upload box. You could change it to tweak any CSS on the page, of course.

  4. happykev
    Member
    Posted 7 years ago #

    I've just hided file uploader box by adding "display: none; "

    But what about
    Optional Excerpt box
    Trackbacks
    Custom Fields?

    They're not in the wp-admin.css

  5. krugern
    Member
    Posted 7 years ago #

    use the + sign to close them.

  6. happykev
    Member
    Posted 7 years ago #

    I don't see the + sign in there.

  7. happykev
    Member
    Posted 7 years ago #

    Nevermind, i found everything in the editform advance script. I can just del whatever there.

    miklb, thanks for the wrong answer.

  8. Michael Bishop

    Posted 7 years ago #

    It wasn't the "wrong answer", as my reply started with "Not a solution..."

  9. vkaryl
    Member
    Posted 7 years ago #

    happykev, keep in mind that when you upgrade next, your edits will be overwritten - you'll need to redo them.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.