How to hide the wordpress visual editor and HTML editor

Sponsors

If you want to hide the wordpress editor from admin panel then you can use the following code in functions.php file. This is achived with very simple css trick.

add_action('admin_head', 'hide_post_box');

function hide_post_box() {
?>
 <style>
 #editor-toolbar{ display:none; }
 #editorcontainer{ display:none; }
 #quicktags { display:none; }
 #post-status-info { display:none; }
 </style>
<?php
}

Incoming search terms:

You may like following Articles!

15 thoughts on “How to hide the wordpress visual editor and HTML editor

  1. You actually make it seem so easy with your presentation but I find this topic to be really something that I think I would never understand. It seems too complicated and very broad for me. I’m looking forward for your next post, I will try to get the hang of it!

  2. You sir are brilliant. I have been trying to solve this one for ages. I installed Adminimize which is brillinat and it seems the only thing it wont remove is the post editor. Using Adminimize however you can specify your own meta things to remove only I didnt know what they were. They were these;
    #editor-toolbar
    #editorcontainer
    #quicktags
    #post-status-info

    So now success.

    Is there a way I can find out what the different meta thingos are … like I didnt know it was called editorcontainer
    but how would i find out what other parts are called?
    Sorry I dont quite have all the proper lingo.

  3. Nice post! You truly have a wonderful way of writing which I find captivating! I will definitely be bookmarking you and returning to your blog. In fact, your post reminded me about a strange thing that happened to me the other day. I’ll tell you about that later…

    • I have the same question. I’d like to be able to write the function so it only applies to specific admin posts/pages. Please let me know if there is a way to do this.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>