Categories

Featured templates

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

Elina Webb November 19, 2015
Rating: 5.0. From 2 votes.
Please wait...

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

Coolest Wordpress Themes
This entry was posted in WordPress Tutorials and tagged dashboard, editor, remove, WordPress. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket

Live Chat
We help you to choose the right product.