[wp-trac] [WordPress Trac] #24814: Allow placing theme templates in subdirectory

WordPress Trac noreply at wordpress.org
Mon Jul 22 05:50:14 UTC 2013


#24814: Allow placing theme templates in subdirectory
-------------------------+-----------------------------
 Reporter:  bungeshea    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  minor        |   Keywords:
-------------------------+-----------------------------
 It would be nice if all theme templates, such as {{{footer.php}}},
 {{{header.php}}}, and content parts such as {{{content.php}}} could be
 placed in a subdirectory in the theme, such as {{{templates/}}}, instead
 of in the theme root.

 For a standard theme with few templates, placing the templates in the root
 is okay. However, when you add in content parts for post formats, and
 separate out the loop, you can end up with quite a few templates.
 Add a screenshot.png, style.css, minified style.css, editor-style.css,
 readme, license, and perhaps a GruntJS file, Git config files, or a
 Compass config file, and the theme root becomes quite cluttered. Allowing
 templates files to be separated in a subdirectory would result in a much
 cleaner directory structure.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24814>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list