WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

Your Answer


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.