how to Enable Theme Editor Page on WordPress Admin Panel

The Theme Editor in WordPress allows you to edit theme files directly from the WordPress admin dashboard. However, the Theme Editor is disabled by default for security reasons on some installations. Here’s how you can enable and access the Theme Editor page:

Step 1: Enable the Theme Editor

  1. Check for Security Plugins: Sometimes, security plugins like Wordfence, iThemes Security, etc., disable the Theme Editor. Check your active plugins to see if any of them are restricting access to the Theme Editor and disable that feature if possible.
  2. Add Code to wp-config.php: If your hosting provider or security settings have disabled the Theme Editor, you can re-enable it by adding a line of code to your wp-config.php file. Follow these steps:
  • Access your website files via FTP or your hosting control panel’s file manager.
  • Locate the wp-config.php file in the root directory of your WordPress installation.
  • Download and open wp-config.php in a text editor.
  • Add the following line of code just before the line that says /* That's all, stop editing! Happy publishing. */:

    define('DISALLOW_FILE_EDIT', false);
  • Save the file and upload it back to your server.

Step 2: Access the Theme Editor

  1. Log in to your WordPress admin dashboard.
  2. Navigate to Appearance > Theme Editor.

Important Note on Security

Enabling the Theme Editor allows direct access to your theme’s PHP files, which can pose a security risk. Ensure that only trusted users have access to your WordPress admin dashboard. It’s also a good idea to back up your website before making any changes to your theme files.

Alternative: Use a Child Theme

If you plan to make significant changes, consider creating a child theme to ensure your customizations are not lost when the theme is updated.

Alternative: Use FTP/SFTP

Another safe way to edit theme files is using an FTP/SFTP client. This method provides more control and reduces the risk of accidentally breaking your site.

  1. Use an FTP client like FileZilla to connect to your website.
  2. Navigate to the wp-content/themes/your-theme-name/ directory.
  3. Download the file you want to edit, make changes locally, and then upload it back to the server.


While enabling the Theme Editor is straightforward, it’s essential to consider the security implications. Using the wp-config.php method, you can enable the editor, but always back up your files before making changes. Alternatively, using FTP/SFTP for file edits is a safer approach.

Leave a Reply

Your email address will not be published. Required fields are marked *

This website stores cookies on your computer. Cookie Policy