Theme File Editor Missing from WordPress Dashboard
If you cannot find Appearance > Theme File Editor (or Tools > Theme File Editor) in your WordPress dashboard, this guide explains why it is hidden and shows you safe alternatives for adding custom PHP code to your Neve site.
Why the Theme File Editor Is Missing
The Theme File Editor is disabled by default on many WordPress installations for security reasons. The editor is hidden when any of the following apply:
- Your
wp-config.phpfile contains the constantdefine('DISALLOW_FILE_EDIT', true); - Your hosting provider has set
DISALLOW_FILE_EDITat the server level to harden the installation. - A security plugin (such as Wordfence, iThemes Security, or Solid Security) has disabled it as part of a hardening routine.
📝 Note: DISALLOW_FILE_EDIT is a WordPress security best practice. It prevents direct file editing through the browser, reducing the risk of damage if your WordPress admin account is ever compromised.
Restoring the editor by removing the constant is not recommended. Instead, use one of the safer alternatives described below.
Recommended Alternatives
Option 1: Add Code via a Child Theme
A Neve child theme lets you safely add custom PHP to functions.php without touching Neve's core files. Your changes survive Neve updates because they live in a separate theme.
For full instructions on creating and activating a child theme, see How to Create a Child Theme for Neve.
Once your child theme is active, you can add custom PHP by editing the child theme's functions.php file directly in your hosting file manager or via SFTP — without needing the WordPress Theme File Editor.
⚠️ Important: Never edit the files inside the main Neve theme folder. Any changes there will be overwritten the next time Neve updates.
Option 2: Add Code via a Code Snippets Plugin
A code snippets plugin lets you add PHP snippets from your WordPress dashboard without editing any theme files. This approach works even when the Theme File Editor is disabled and does not require a child theme.
Recommended plugin: Woody Code Snippets – Insert PHP, HTML (free, available on WordPress.org).
Troubleshooting
My snippet is not appearing in the page source
- Confirm the snippet or child theme change was saved.
- Clear all caches (plugin cache, server cache, CDN cache) and reload.
- If using Woody Code Snippets, check that the snippet is toggled Active and that the insertion location is correct.
I see a PHP error after adding my code
- Double-check the syntax of your snippet, especially missing semicolons or unclosed brackets.
- If the site becomes inaccessible, use your hosting file manager or SFTP to remove or revert the code in
functions.php.
I cannot access my child theme files via file manager
- Contact your hosting provider for SFTP credentials or access to the hosting file manager.
- Some managed hosts (e.g., WP Engine, Flywheel) provide a built-in file manager in their dashboard.
Related articles:

