Hiding the Editor Part 2

A previous post explained how to hide the WordPress editor for custom post types.

I just noticed that this no longer works in WordPress 3.3.1. It looks like the CSS Ids have changed for the editor. The whole editor is now enclosed by a div with the id ‘postdivrich’.

Thus the hide_editor() function now reads as below. Much simpler.

	function hide_editor() {
				#postdivrich {display:none;}

3 thoughts on “Hiding the Editor Part 2”

  1. Hi!

    Solution is briliant but don’t work for my wordpress ;(

    I found this
    add_action(‘init’, ‘remove_editor_init’);
    function remove_editor_init() {
    remove_post_type_support(‘post’, ‘editor’);

    and it’s work 😉

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s