Title: Adding files to Theme Editor
Last modified: August 20, 2016

---

# Adding files to Theme Editor

 *  [ZebaSz](https://wordpress.org/support/users/zebasz/)
 * (@zebasz)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/adding-files-to-theme-editor/)
 * As a solution to my original problem with [adding an option to edit custom files within admin pages](http://wordpress.org/support/topic/allow-user-to-add-custom-code-without-editing-template?replies=3),
   I decided to simply let users upload their own files, and edit the through the
   WordPress Theme Editor. The problem is, the user can find those files if they
   know the naming scheme, but they’re still hard to find. Also, if I store a file
   under known names such as “header.php” (in a sub-folder, but still), they show
   up like template files from the default template heriarchy (which is rather confusing).
   
   Is there any way to manually add the files with custom names to the Theme Editor?
   I know custom template show up as “Template X” when a name is defined in a comment
   like so:
 *     ```
       /*
       * Template Name: Something-or-another
       */
       ```
   
 * but these aren’t technically page templates, so I’d rather avoid such hack.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [mika1234](https://wordpress.org/support/users/mika1234/)
 * (@mika1234)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/adding-files-to-theme-editor/#post-2923151)
 * I use [Lubith](http://www.lubith.com) as a theme editor for WordPress. The thing
   about this editor is that it puts a lot of emphasis on the structure of the layout,
   everything is well-defined and selectable. When I make templates in Photoshop
   I simply cut the portions of the structure, rename and export them according 
   to the Lubith’s structure (the default layout is basically the twenty ten theme)
   so that the user is able to recognize each piece and what it contains.
 *  Thread Starter [ZebaSz](https://wordpress.org/support/users/zebasz/)
 * (@zebasz)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/adding-files-to-theme-editor/#post-2923172)
 * That doesn’t really solve my development problem. I want to add files to the 
   built-in editor in order to allow the user to insert their own custom HTML, JS
   or PHP code (if they know what they’re doing, of course).
 * _[ Please do not bump, that’s [not permitted here](http://codex.wordpress.org/Forum_Welcome#No_Bumping).]_

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding files to Theme Editor’ is closed to new replies.

## Tags

 * [theme development](https://wordpress.org/support/topic-tag/theme-development/)

 * 2 replies
 * 2 participants
 * Last reply from: [ZebaSz](https://wordpress.org/support/users/zebasz/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/adding-files-to-theme-editor/#post-2923172)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
