Does anyone know how to remove the main editor from the page edit page? And not only with css. I added a few other meta boxes with tinim, and they encounter the main one.
I have a class that removes other meta windows from the editing screen, but I cannot get rid of the main editor this way. I tried adding "divpostrich" and "divpost" to the array in the class (but no luck):
class removeMetas{ public function __construct(){ add_action('do_meta_boxes', array($this, 'removeMetaBoxes'), 10, 3); } public function removeMetaBoxes($type, $context, $post){ $boxes = array( 'slugdiv', 'postexcerpt', 'passworddiv', 'categorydiv', 'tagsdiv', 'trackbacksdiv', 'commentstatusdiv', 'commentsdiv', 'authordiv', 'postcustom'); foreach ($boxes as $box){ foreach (array('link', 'post', 'page') as $page){ foreach (array('normal', 'advanced', 'side') as $context){ remove_meta_box($box, $type, $context); } } } } } $removeMetas = new removeMetas();
I also tried removing 'divpostrich' using jquery. But I canβt understand where to put js for its work. When I delete "postdivrich" in the browser using firebug - my remaining tinymce fields work fine.
Any ideas?
jquery php wordpress wordpress-theming
ugreen
source share