Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

What is the differene between stylesheet_directory and template_directory? Is that representing Child theme and Parent theme?

share|improve this question
    
Any progress on this one? –  kaiser Jun 25 '13 at 22:20
add comment

1 Answer

Kind of - the template_directory is the directory of your parent theme. The stylesheet_directory is the directory containing the primary stylesheet in use (which, if you have a child template will be the in the child directory, otherwise it will be in the template directory).

See the Codex here:

'stylesheet_url' - Returns the primary CSS (usually style.css) file URL of the active theme.

'template_url' / 'template_directory' - URL of the active theme's directory ... Within child themes, both get_bloginfo('template_url') and get_template() will return the parent theme directory.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.