Hide content area in post editor and only show custom fields

To help my user experience i need to hide the default Gutenburg content editor in the standard wordpress posts editor. My client is using cornerstone to build there blog posts but they have asked for some custom fields. We have used ACF pro to add the fields and we will be showing the clint how to access the wordpress post editor from the Cornerstone editor but we would like to hide the content area to prevent anyone editing the cornerstone code or having to scroll all the way to the bottom of the content to add the data into the custom fields.
Can you advise on the cleanest way of doing this.

Many thanks
Richard

Hi Richard,

Unfortunately, there is no such way to prevent anyone from accessing the editor. You can search for any free plugin from the WordPress repository that helps you to disable the editor.

Thanks

For anyone else looking to do this, this is where i ended up. Happy to hear any comments on why this might be a bad idea.
I don’t like the idea of installing plugins to achieve what seems to be quite a simple and logical request. It stands to reason that if we are encouraging our customers to use cornerstone on their sites then we don’t want to confuse them with the default content editor area (Gutenburg). This is especially true when they have to access the standard wordpress editor screens as it is the only way to enter data in custom fields.

With the above in mind if found this filter on


which i have added to my child theme function.php file.

add_filter(‘use_block_editor_for_post’, ‘__return_false’);

While this does not remove the editor section from the standard wordpress editor screen completely it removes the block editor which is replaced with the traditional editor that then by default displays the edit with cornerstone button and as such preventing anyone editing the code without a big warning message.

A nice feature request would be to bring custom fields into the cornerstone editor in the same admin panel as you can now set the featured image and excerpt

In case it helps others

Hi Richard,

Glad that you are able to find a workaround on this. Showing the custom field in the Cornerstone can be a very useful feature, I will surely check with our development team and if possible will create a feature request for future consideration.

Thanks