[wp-hackers] TEMPLATEPATH in child themes

Nathan Rice ncrice at gmail.com
Wed May 13 18:18:45 GMT 2009


STYLESHEETPATH is what you want to use.

TEMPLATEPATH points to the parent theme path because the parent theme is
considered the "template" in the child theme style.css file.  It makes
sense.

Nathan

My Website
http://www.nathanrice.net/

My Twitter
http://twitter.com/nathanrice


On Wed, May 13, 2009 at 2:13 PM, Eric Marden <wp at xentek.net> wrote:

> Not sure if this is a bug or not, but I noticed that the constant
> TEMPLATEPATH points to the Parent Theme even when you have a Child Theme
> activated. Is this required for the Child Theme's missing files to default
> to the Parent Theme's files, or just a bug in that TEMPLATEPATH doesn't get
> updated with the child theme's path.
>
> Its causing me a problem, which I can work around with a symlink, but was
> wondering if this is the expected behavior. Is there another CONSTANT that
> would point to the child theme properly?
>
>
> - Eric Marden
> __________________________________
> http://xentek.net/code/wordpress/
>
>
>
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list