- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
CherryFramework 3. How to remove Theme Editor menu from the Dashboard
November 19, 2015
This video tutorial will show you how to remove Theme Editor menu from the WordPress Dashboard.
CherryFramework 3. How to remove the Theme Editor menu from the Dashboard
The WordPress dashboard contains a menu item that allows you to edit any installed WordPress theme under Appearance > Editor:
If you do not want to allow editing theme files via your admin panel, you can check for how to remove such menu item from Dashboard:
-
Log into cPanel, go to File Manager (or you can also connect to FTP):
-
Navigate the root directory of WordPress site. Then go to wp-content/themes/themexxxxx/includes folder. Open custom-function.php file to edit:
At the bottom of this file, before closing code ?>, we will paste the following code:
function remove_editor_menu() { remove_action('admin_menu', '_add_themes_utility_last', 101); } add_action('_admin_menu', 'remove_editor_menu', 1);
Click on Save button to save the file.
Refresh WordPress Dashboard to check:
Feel free to check the detailed video tutorial below:
CherryFramework 3. How to remove the Theme Editor menu from the Dashboard