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?
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With