[wp-hackers] Parent-Child Themes and New Page Templates

Andy Skelton skeltoac at gmail.com
Tue Jun 3 13:49:40 GMT 2008


On Mon, Jun 2, 2008 at 11:45 AM, Ian Stewart <ian at themeshaper.com> wrote:
> PROBLEM: I can make new, CSS-only, child themes by including "TEMPLATE:
> define-parent-theme-here" in the comments of my stylesheet, inheriting all
> the page templates of a parent theme. I can override and add new functions
> by including a functions.php file with this child theme. BUT! What if I want
> to add new page templates? Can I add foo.php or bar.php in the folder of my
> child theme and make it available in WRITE > PAGE?

No. WP only looks for templates in the template directory. I'd like to
see it patched so that any template file existing in the stylesheet
directory takes precedence. Is that something you could do?

Andy


More information about the wp-hackers mailing list