WordPress GuideErrors → Sub Menu Options Disappear Hovering

Fixed: Theme file editor missing in WordPress

The Theme File Editor is a built-in tool that lets you directly edit your theme’s code from the WordPress dashboard. But sometimes, it suddenly vanishes. Don’t worry—it’s usually an easy fix.

Let’s walk through the most common reasons why the Theme File Editor disappears in WordPress and how to get it back safely.

Why the WordPress theme file editor disappears

The Theme File Editor is normally found under Appearance > Theme File Editor. If you don’t see it, one of the following issues is likely causing the problem:

Let’s fix it step by step.

1. Check for DISALLOW_FILE_EDIT in wp-config.php

The most common cause is a line in your wp-config.php file that disables the editor.

Important: Only do this if you know what you’re editing. One small syntax error can break your site.

2. Make sure you’re using a classic theme

WordPress block themes—also called Full Site Editing (FSE) themes—don’t support the old-school Theme File Editor. These themes use a visual Site Editor instead of PHP templates.

To check your active theme:

If you’re committed to your block theme, you’ll need to edit templates through the Site Editor or use custom development workflows.

3. Deactivate security plugins temporarily

Some security plugins disable file editing for protection. This is common with:

Here’s how to check:

If the editor returns, go into the plugin’s settings and look for an option that disables file editing. Adjust the setting or leave the plugin deactivated if you plan to re-enable file access.

4. Confirm your user role has admin privileges

Only administrators can access the Theme File Editor. If you’re logged in as an Editor, Contributor, or Subscriber, you won’t see it at all.

To verify your user role:

Need to change roles manually? A plugin like User Role Editor makes it easy to adjust or verify permissions.

5. Check your hosting provider or server configuration

Some managed WordPress hosting providers disable the Theme File Editor to prevent accidental site-breaking changes. If your host disables file editing at the server level, you won’t be able to enable it through WordPress or wp-config.php.

What to do:

6. Use a safe alternative to the theme file editor

Even when available, the Theme File Editor is risky. It lets you make real-time changes to your theme’s PHP files—with no undo button. A small typo can take your site offline.

Safer options include:

7. Restore missing editor with a custom plugin (advanced users)

If you want to programmatically re-enable the editor without touching wp-config.php, you can create a tiny plugin:

Use this method only if you’re comfortable working with file structure and plugin code.

Preventing future issues with the theme file editor

Once you’ve restored the Theme File Editor, a few best practices can help avoid losing access again:

Additional resources

Diagnosing WordPress errors on your site →

Even more common errors, how to troubleshoot them, and how to solve them

Fixed: WordPress failed to write file to disk →

Learn how to fix the “Upload: Failed to Write File to Disk” error in WordPress with easy troubleshooting steps.

What is managed WordPress hosting? →

What it means, what it includes, and how to decide if it’s right for you