[contact-form-7 id="24078" title="Feedback EN"]

Featured templates

CherryFramework 3. How to remove Theme Editor menu from the Dashboard

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:

WordPress-How_to_remove_the_Theme_Editor_menu_from_the_Dashboard-1

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:

  1. Log into cPanel, go to File Manager (or you can also connect to FTP):

    WordPress-How_to_remove_the_Theme_Editor_menu_from_the_Dashboard-2

  2. Navigate the root directory of WordPress site. Then go to wp-content/themes/themexxxxx/includes folder. Open custom-function.php file to edit:

    WordPress-How_to_remove_the_Theme_Editor_menu_from_the_Dashboard-3

    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);
    		

    WordPress-How_to_remove_the_Theme_Editor_menu_from_the_Dashboard-4

    Click on Save button to save the file.

Refresh WordPress Dashboard to check:

WordPress-How_to_remove_the_Theme_Editor_menu_from_the_Dashboard-5

Feel free to check the detailed video tutorial below:

CherryFramework 3. How to remove the Theme Editor menu from the Dashboard