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.
you can do this in two ways. First with using admin panel. First thing you need to do is login to your WordPress admin panel.
Then you would need to go to Users > Your Profile,
Just disable visual editor checkbox. That sit. But if you want to this setting to done for all wordpress users then you can use following code.
How to hide wordpress visual editor and HTML editor
you just need add following code into your functions.php file. This file you can find in your wordpress theme folder.
add_action('admin_head', 'hide_post_box'); function hide_post_box() { ?> <%%KEEPWHITESPACE%%> <style> <%%KEEPWHITESPACE%%> #editor-toolbar{ display:none; } <%%KEEPWHITESPACE%%> #editorcontainer{ display:none; } <%%KEEPWHITESPACE%%> #quicktags { display:none; } <%%KEEPWHITESPACE%%> #post-status-info { display:none; } <%%KEEPWHITESPACE%%> </style> <?php }
Hi, great post. One question is there a way to hide editor for only the admin post but keep it for admin page?
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.