Title: theme directory path
Last modified: August 19, 2016

---

# theme directory path

 *  Resolved [warpdesign](https://wordpress.org/support/users/warpdesign/)
 * (@warpdesign)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/theme-directory-path/)
 * Can someone please tell me what the function name is that prints out the path
   to the theme’s directory relative to index.php? i.e. wp-content/themes/theme 
   I tried get_template_directory() which is not what I want…
 * Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/theme-directory-path/#post-1166592)
 * Some examples:
 *     ```
       <?php bloginfo('template_directory'); ?> returns the active template directory
   
       <?php bloginfo('url'); ?>  returns URL of web root
   
       <?php bloginfo('title'); ?> returns blog name
       ```
   
 * You’ll need a trailing slash, i.e.:
 * `<?php bloginfo('template_directory'); ?>/images/header.jpg`
 *  Thread Starter [warpdesign](https://wordpress.org/support/users/warpdesign/)
 * (@warpdesign)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/theme-directory-path/#post-1166600)
 * Sweet, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘theme directory path’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [warpdesign](https://wordpress.org/support/users/warpdesign/)
 * Last activity: [16 years, 10 months ago](https://wordpress.org/support/topic/theme-directory-path/#post-1166600)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
