July 10, 2023

How to Fix WordPress Theme File Editor Not Showing

Play Video

Sometimes you might encounter the issue that the WordPress theme file editor not showing. This can be a hurdle, especially when you need to edit your theme or plugin files directly from your dashboard. But don’t worry, this tutorial by PluginsForWP will help you resolve this issue. With the help of the File Manager plugin for WordPress, you can easily edit your files and activate the Theme File Editor functionality.


Steps to Fix the WordPress Theme File Editor Not Showing

1. Install the File Manager Plugin

Go to your WordPress dashboard and navigate to “Plugins > Add New”. In the search bar, type “File Manager” and hit enter. Install and activate the first plugin that appears in the search results.

2. Access the WP File Manager

Once the plugin is activated, go to the “WP File Manager” tab in your dashboard. This will open a new window displaying all your WordPress system files.

3. Edit the wp-config File

In the WP File Manager, locate the “wp-config.php” file. This file contains various configuration settings for your WordPress site. Right-click on the file and select “Code Editor”. Best to save the file locally as a backup before you make any modifications.

4. Modify the Configuration

In the code editor, look for the line that says define('DISALLOW_FILE_EDIT', true);. This line of code is what prevents the theme file editor from showing in your dashboard. You have three options to modify this line:

  1. Delete the entire line
  2. Comment it out by adding two forward slashes at the beginning (//define('DISALLOW_FILE_EDIT', true);)
  3. Change the value from true to false (define('DISALLOW_FILE_EDIT', false);)

After making the changes, click on “Save and Close”.

5. Refresh Your Dashboard

Finally, refresh your WordPress dashboard and navigate to “Appearance”. You should now see the “Theme Editor” option. Click on it to confirm that it works.


Why Restoring the Theme File Editor is Beneficial

Flexibility in Editing

Having the theme file editor readily available in your dashboard provides you with the flexibility to make quick edits to your theme or plugin files. This can be useful when you need to make minor changes or fixes and don’t want to go through the hassle of accessing your server files via FTP.

No Need for FTP Software

If you’re not comfortable using FTP software or don’t have server access, the File Manager plugin is a lifesaver. It allows you to access your WordPress core files directly from your dashboard, making the process of editing your files much simpler and more convenient.

Improved Workflow

Restoring the theme file editor can significantly improve your workflow, especially if you frequently make changes to your theme or plugin files. It saves you time and effort, allowing you to focus more on other aspects of managing your WordPress site.


Common Issues and Solutions

  • The theme file editor is still not showing after following the steps
    Make sure you’ve correctly edited the wp-config.php file and saved the changes. If the issue persists, try deactivating and reactivating your plugins to check if there’s a conflict.
  • I can’t find the wp-config.php file in the WP File Manager
    The wp-config.php file is usually located in the root directory of your WordPress installation. If you can’t find it, it’s possible that your WordPress installation is not standard, and the file is located elsewhere.
  • I made a mistake while editing the wp-config.php file, and now my site is broken
    This is why it’s crucial to take a backup before making any changes. If you have a recent backup, you can restore your site to its previous state.

Required Resources

File Manager Logo
Free Options
Credit to PluginsForWP
PluginsForWP is a resourceful channel dedicated to providing tutorials and guides about WordPress plugins and themes. The channel covers a wide range of topics related to WordPress, including how to fix common issues, add new features, and optimize your website for better performance.
Visit
How to Fix WordPress Theme File Editor Not Showing
Welcome back!
Enter your Helwp credentials to sign in.

No Account yet? Sign Up

My Account
Menu
Give Feedback
Describe your feedback *
Rate Helwp
Share
Facebook
Twitter
LinkedIn
Reddit
Email
WhatsApp
Telegram
Pocket
Report
Problem *
Describe the problem
Want us to reply?
Your E-Mail
Affiliate Disclosure

At Helwp, we’re committed to transparency and honesty. Therefore, we want to inform you that some of the links on our website are affiliate links. This means that, at no additional cost to you, we may earn a small commission if you click through and make a purchase.

We only promote products or services that we genuinely believe in. These affiliate commissions help us to maintain the website and continue to provide you with free, high-quality WordPress content.

If you are interested in how you can support us even further, check out our support page.