Title: Theme Function &#039;ipt_kb_scripts&#039; issue with Child Themes
Last modified: August 31, 2016

---

# Theme Function 'ipt_kb_scripts' issue with Child Themes

 *  [mnsweet](https://wordpress.org/support/users/mnsweet/)
 * (@mnsweet)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/theme-function-ipt_kb_scripts-issue-with-child-themes/)
 * In the theme function ipt_kb_scripts, the wp function `get_stylesheet_directory_uri`
   is called to create the uri of each file. When the theme is extended by a child
   theme `get_stylesheet_directory_uri` points to child theme’s directory and not
   the parent. Change `get_stylesheet_directory_uri` to `get_template_directory_uri`
   to keep it pointing to parent whether it’s extended or not by a child.

Viewing 1 replies (of 1 total)

 *  [santilomb](https://wordpress.org/support/users/santilomb/)
 * (@santilomb)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/theme-function-ipt_kb_scripts-issue-with-child-themes/#post-8786820)
 * If the problem is with the CSS and JS used in the parent theme, please copy the
   LIB folder from the parent to the child theme. This workaround works excellent
   for me.
    -  This reply was modified 9 years, 4 months ago by [santilomb](https://wordpress.org/support/users/santilomb/).

Viewing 1 replies (of 1 total)

The topic ‘Theme Function 'ipt_kb_scripts' issue with Child Themes’ is closed to
new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/wp-knowledge-base/1.6.0/screenshot.
   png)
 * WP Knowledge Base
 * [Support Threads](https://wordpress.org/support/theme/wp-knowledge-base/)
 * [Active Topics](https://wordpress.org/support/theme/wp-knowledge-base/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/wp-knowledge-base/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/wp-knowledge-base/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [santilomb](https://wordpress.org/support/users/santilomb/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/theme-function-ipt_kb_scripts-issue-with-child-themes/#post-8786820)
 * Status: not resolved