Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WordPress theme editor is missing

I am trying to access the theme editor in WordPress.

The problem is that I cannot find the option under Admin-Appearances - Editor and when I try to access the page using the link http://www.nameofsite.com/wp-admin/theme-editor.php I get the error:

You do not have sufficient permissions to access this page.

I am logged in as an administrator. Why can't I find the editor option?

like image 946
user3192304 Avatar asked Jul 17 '16 23:07

user3192304


People also ask

How do I enable the theme editor in WordPress?

While this tool is called Theme Editor in the older WordPress version, the newer WordPress 5.9 uses Theme File Editor. Access the theme code editor via Appearance -> Theme File Editor. On the right side, it will display a list of template files the theme includes. Click on any file to see its content and make changes.

Why there is no theme editor in WordPress?

It's important to note that the theme editor usually goes missing because it is being blocked by a security plugin. Since a lot of WordPress users use iThemes Security, disabling it will usually be enough to solve the problem. But if it persists, feel free to go through your plugins one by one.


1 Answers

It is probably because of iThemes Security and its settings. So yeah, just go to wp-config and change DISALLOW_FILE_EDIT to false.

define( 'DISALLOW_FILE_EDIT', false );

Or just switch it off here: Dashboard -> Security -> WordPress Tweaks -> Configure Settings

Uncheck: Disable File Editor

like image 138
Jirka Štencek Avatar answered Sep 18 '22 15:09

Jirka Štencek