WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using the simple fields plugin to provide additional rich text editors and have no need for this 'main' text editor box on any of my 'page's

I have tried the following code in my functions.php:

function my_remove_meta_boxes() {
add_action( 'admin_menu', 'my_remove_meta_boxes' );

Apparently this will not work since it is not actually a meta box...

I suppose I could sneak some jQuery in somewhere: ('#postdivrich').hide() but I am not really sure where to put it, and suspect that there is a better way.

Any help would be greatly appreciated

Edit: this question describes how to do what I want, but for a custom post type. Can I apply this same technique to 'pages' somehow?

Edit 2: Using noob power I made something work, but for all post-types and with it flashing on screen before being hidden. I skipped JQuery and went straight for plain ole JS:

function removeMainTxtContent(){
    echo '<script>window.onload=function(){document.getElementById("postdivrich").style.display="none";}</script>';
}add_action('admin_head', 'removeMainTxtContent');
share|improve this question
up vote 11 down vote accepted

see remove_post_type_support

function remove_pages_editor(){
    remove_post_type_support( 'page', 'editor' );
add_action( 'init', 'remove_pages_editor' );
share|improve this answer
Awesome, thank you! I knew it must be simple. – Zach Lysobey Oct 24 '11 at 21:04
uh Oh... sorry to remove the check mark. There were some unforseen ramifications to this method. This removed the rich text editing (tinymce stuff) from my custom fields. – Zach Lysobey Oct 24 '11 at 21:07
Thanks milo. didnt know remove_post_ty.... opened a lot of options for me :) – Sagive SEO Nov 7 '11 at 3:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.