remove/hide wp-editor

I believe the helper you’re looking for (assuming we’re not dealing with a custom post type) is:

<?php remove_post_type_support('page', 'editor'); ?>

When dealing with a custom post type you can exclude ‘editor’ from the ‘supports’ parameter to initialize the post type without the editor window.

Finally, if you are trying to disable the editor only when a specific page template is selected from the “Template” drop down menu, your best bet is likely a Javascript/jQuery approach to HIDE “#postdivrich” after an onChange event is triggered by “#page_template”. Just remember to SHOW when the other templates that do support the editor are selected.

tech