wordpressthemesadmin

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?


Solution

  • 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