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

  • Any progress on this one?
    – kaiser
    Jun 25, 2013 at 22:20

1 Answer 1


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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