[wp-hackers] TEMPLATEPATH in child themes
ncrice at gmail.com
Wed May 13 18:20:31 GMT 2009
Also, the same principle applies when trying to get the URL of the template
or child theme directory.
On Wed, May 13, 2009 at 2:18 PM, Nathan Rice <ncrice at gmail.com> wrote:
> 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
> My Website
> My Twitter
> 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
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
More information about the wp-hackers