Advertise on Site! You can Advertise on our site. Find out More

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 />

Add a Comment

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