The content box is in a <div>
with an ID of #postdivrich
so you can hide it using CSS.
Probably the easiest thing to do is to add a settings option to an existing page so you can turn it off or on. The post below covers that in detail:
http://wpengineer.com/2139/adding-settings-to-an-existing-page-using-the-settings-api/
After you have the setting in place, you need to check for it and output CSS in the right place. Add this to functions.php
:
if (get_option('paradise_hide_editor') == 'yes') {
function paradise_hide_editor() {
echo '
<style type="text/css">
#postdivrich {display: none}
</style>';
}
add_action('admin_head', 'paradise_hide_editor');
}
Related Posts:
- How do I get the current edit page ID in the admin?
- Modify Admin Bar Link
- How to remove row-actions from pages table?
- Is it possible to remove the main rich Text box editor?
- Add admin bar link to edit author
- Replacing select2 in admin backend for all selects
- echo or print_r in an admin function
- Can I remove the Rich Text box editor for a specific post?
- Hide some items from Screen options in dashboard for products
- How to add a column to the Trash page?
- How to test for Super Admin
- How to select a page within admin?
- Change Admin Bar “Visit Site” URL
- How to Display Frontend CSS for Administrator only
- Hard-coding custom menu elements for menu manager
- How to make custom column Admin>Users sortable?
- Trigger a custom function when option are saved in admin area
- Move ‘current-menu-item’ class on #adminmenu li from Posts to Pages for Taxonomy Edit Screen
- Force to use STRONG users password and implement rule to prevent REUSE [closed]
- Logout Redirect and also WP-login.php Redirect
- what is best way to keep track of changes made in wordpress website? [closed]
- WordPress wraps span tags into p tags
- Creating a custom wordpress widget and stopping js from running twice(once in active widget once in widget selector)?
- Removing WPML Items From the WordPress Admin Bar
- Show metadata in users.php – wordpress
- How to display my comment count in the wordpress admin bar?
- Remove check boxes and its label from screen option for custom role
- Multisite Admin Roles
- function to return comma separated list of meta values
- Does hooking into the same action multiple times drain memory?
- Apply custom role capabilities to administrator (without plugin)
- Different wp_mail_from and wp_mail_from_name for specific situations
- register_post_type for Pages?
- is_front_page not working in functions.php
- VERY new to coding – keep breaking site trying to add to functions.php
- Restrict user registration to emails on a single domain
- Call to undefined add_action() in theme’s functions.php
- How to enqueue JavaScript for specific WordPress pages only?
- Passing HTML in WordPress Shortcode arguments
- Can I use require() function in a template file?
- What is the most efficient method for loading widgets in functions.php
- Enqueue script o style only if a template part is loaded
- Exclude Empty Child Categories in Menu
- Can I pass two roles to the function get_users?
- Convert User ID’s to User Names in a single.php file
- How to specify which Gutenberg blocks are available in the editor for a page template
- password protected post policy
- Custom Shortcode, functions PHP WP_Query loop
- wpautop – disable tags, keep tags
- Logout hyperlink within a sub-menu
- How do I pass arguments for multiple functions hooked to a single action?
- Manipulate Permalink
- Change the HTML of the comment form that is generating somewhere from the core WordPress
- Theme functions.php file auto delete everyday [closed]
- How to get the index number of the posts?
- Removing wp_login_viewport_meta
- Two Types of settings in WP – The Doubt
- Custom Attachment Caption Fields
- How to call particular funcion when the check box is checked in plugin options page
- Call WordPress function outside of WordPress
- Events: Check for other event with same start date and category [closed]
- enqueue_script with filemtime javascript not working
- WP function won’t work on 404 template page
- Need print logo without any ID & class
- Can we create our own theme’s function.php?
- Not all CSS elements transferring via parent to child?
- Using Static HTML instead of the `home_url()` WP function
- How to append classname to body tag if guest user
- add_filter to specific WooCommerce Category
- Need To Change WordPress Meta Tags… Includes wordpress shortcodes
- Adding a section in line at the end of the main navigation menu in php
- Only echo Page Content (not page title & page content together)
- update_post_meta is Updating with two page id
- How do I preserve changes to a theme’s functions.php across updates?
- Unable to Change “Pages:” Before WP_LINK_PAGES
- sort metabox columns in listing Single
- Fetch URL parameter
- Updating custom query var with multiple values
- WordPress wp_dequeue_script remove all other scripts
- Error in “class-wp-hook.php”
- Add Javascript code to functions.php childtheme
- Ajax in plugin fails – but only on one blog – no idea why
- method to fetch entire tag list on archive.php
- MCAPI.class.php showing some error
- Remove post from latest posts after a month only with certain tag
- Display list of pages that contain a certain string within the slug
- I need to completely ‘wp_dequeue_script’; what’s the best way?
- wordpress not calling peliegro functions.php?
- Sanitize html, where to sanitize
- How to display data from custom fields in my custom shortcode?
- Modify function Shortcode_atts
- Sort results by name & asc order on homepage
- Add the title of a widget as an ID – for anchor links
- I want to add the alt attribute to all the photos!
- Creating mixture of shortcodes to use in the visual/text editor
- Correct php syntax to add an image in wp functions.php
- Warning: call_user_func_array() expects parameter 1 to be a valid callback
- Change Post status based on custom field date +1 day
- How to add height and width dimensions automatically to archive descriptions
- How to store page-{id}.php templates in custom folder