Is this possible to do somehow?
In some pages i use a custom box plugin and i don’t need to show the content box on some of those pages. Is it possible to hide it by page template? Or ID if template is not possible?
Is this possible to do somehow?
In some pages i use a custom box plugin and i don’t need to show the content box on some of those pages. Is it possible to hide it by page template? Or ID if template is not possible?
You must be logged in to post a comment.
I ended up using userabuser’s answer with a small modification, because global $post doesn’t seem to exist on init. You can instead just query for
post
in querystring, like so:add this to functions.php
Replace posttype with the name of the post type. It will remove the content editor from that post type’s pages
To remove the editor based on template, you may do something like;
Following code works for me. (either specific pages or template)