Title: get current child theme name
Last modified: August 21, 2016

---

# get current child theme name

 *  [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/get-current-child-theme-name/)
 * I know you can find the current theme name with functions like [wp_get_theme()](http://codex.wordpress.org/Function_Reference/wp_get_theme)
   and [get_current_theme](http://codex.wordpress.org/Function_Reference/get_current_theme),
   but I haven’t found a way to get the current theme’s name if you are using a 
   child theme. The functions mentioned above all return info about the parent theme.
   I thought I might get more luck with [bloginfo](http://codex.wordpress.org/Function_Reference/bloginfo),
   but it seems there’s no information about the child theme there either. Any ideas?

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

 *  [parcodeisuoni](https://wordpress.org/support/users/parcodeisuoni/)
 * (@parcodeisuoni)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/get-current-child-theme-name/#post-4515443)
 * With [get_stylesheet()](http://codex.wordpress.org/Function_Reference/get_stylesheet).
   It returns the name of the current stylesheet.
 *  Thread Starter [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/get-current-child-theme-name/#post-4515461)
 * Tried that, but it just returns the folder name. I want to get the actual theme
   name as specified in `style.css`, after `Theme Name:`.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/get-current-child-theme-name/#post-4515462)
 * Use [wp_get_theme()](http://codex.wordpress.org/Function_Reference/wp_get_theme),
 *  Thread Starter [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/get-current-child-theme-name/#post-4515464)
 * Thanks, I was sure I tried that, but seems like I was calling it as `wp_get_theme(
   $themename)` where `$themename` was the parent theme folder name. My mistake :
   $
 * Thanks esmi!
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/get-current-child-theme-name/#post-4515466)
 * I just use something like:
 * `<?php printf( __('Powered by the %1$s Theme', 'theme_textdomain'), wp_get_theme());?
   >`
 *  [parcodeisuoni](https://wordpress.org/support/users/parcodeisuoni/)
 * (@parcodeisuoni)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/get-current-child-theme-name/#post-4515467)
 * [@jules](https://wordpress.org/support/users/jules/), I didn’t get your question
   well, sorry…
 * [@esmi](https://wordpress.org/support/users/esmi/), thank you SOO much!!

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

The topic ‘get current child theme name’ is closed to new replies.

 * 6 replies
 * 3 participants
 * Last reply from: [parcodeisuoni](https://wordpress.org/support/users/parcodeisuoni/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/get-current-child-theme-name/#post-4515467)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
