How to hide the wordpress visual editor and HTML editor

If you want to hide the wordpress editor from admin panel then you can use the following code in functions.php file. This is achieved with very simple css trick. You just need to add the following hook into your functions.php file which you can find in your wordpress theme folder.

<br />add_action('admin_head', 'hide_post_box');<br /><br />function hide_post_box() {<br />?&gt;<br /><%%KEEPWHITESPACE%%> &lt;style&gt;<br /><%%KEEPWHITESPACE%%> #editor-toolbar{ display:none; }<br /><%%KEEPWHITESPACE%%> #editorcontainer{ display:none; }<br /><%%KEEPWHITESPACE%%> #quicktags { display:none; }<br /><%%KEEPWHITESPACE%%> #post-status-info { display:none; }<br /><%%KEEPWHITESPACE%%> &lt;/style&gt;<br />&lt;?php<br />}<br />

You may like following Articles!

  • business review

    ……..How to – HTML CSS JavaScript..Replies..Views..Latest Post……..

  • Dudley Codell

    This post makes a lot of sense !

  • Leanne Shulthess

    I’ve been checking your blog for a while now, seems like everyday I learn something new :-) Thanks

  • Jeff Olive

    Hello, this is my first time i visit here. I found so many interesting in your blog especially on how to determine the topic. keep up the good work.

  • Williams Feusier

    I was just having a conversation over this I am glad I came across this it cleared some of the questions I had.

  • Rich Corporal

    Awesome post. I so good to see someone taking the time to share this information

  • Audria Wamble

    I REALLY liked your post and blog! It took me a minute bit to find your site…but I bookmarked it. Would you mind if I posted a link back to your post?

  • Haywood Rochin

    I would like to say “wow” what a inspiring post. This is really great. Keep doing what you’re doing!!

  • Neomale

    Hi, great post. One question is there a way to hide editor for only the admin post but keep it for admin page?

    • Nicholas

      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.