Title: Bug: Child Theme Theme Overrides
Last modified: January 14, 2022

---

# Bug: Child Theme Theme Overrides

 *  [curiousjake](https://wordpress.org/support/users/curiousjake/)
 * (@curiousjake)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/bug-child-theme-theme-overrides/)
 * Hi,
 * I am using your plugin and have come across an issue. In `src/Output.php line
   184` you search for a wpp theme in the current theme directory using `get_template_directory`.
   However, in the instance where a child theme is being used, this will return 
   the _parent_ theme directory. Please update this to `get_stylesheet_directory`
   so I can use my own theme with your plugin.
 * Many thanks,
    Jake.

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

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/bug-child-theme-theme-overrides/#post-15252982)
 * Hi [@curiousjake](https://wordpress.org/support/users/curiousjake/),
 * Thanks for the report. I’ll look into it as soon as possible.
 * Have a nice day!
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/bug-child-theme-theme-overrides/#post-15253286)
 * Update: [Allow child WordPress themes to override widget themes](https://github.com/cabrerahector/wordpress-popular-posts/issues/321).
 *  Thread Starter [curiousjake](https://wordpress.org/support/users/curiousjake/)
 * (@curiousjake)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/bug-child-theme-theme-overrides/#post-15253435)
 * Awesome, thanks so much for your efficiency [@hcabrera](https://wordpress.org/support/users/hcabrera/)!

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

The topic ‘Bug: Child Theme Theme Overrides’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

## Tags

 * [child theme](https://wordpress.org/support/topic-tag/child-theme/)

 * 3 replies
 * 2 participants
 * Last reply from: [curiousjake](https://wordpress.org/support/users/curiousjake/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/bug-child-theme-theme-overrides/#post-15253435)
 * Status: not resolved