Parent Theme's JS tries to load from child directory
-
Hi,
I’m trying to setup a child theme and am having problems with the way my parent theme is loading javascript files.
In the parent theme header.php it calls several javascript files like the line below:
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/assets/javascripts/plugins.js"></script>
The problem is that it path that it gets for the stylesheet directory is my child theme path , not the parent theme where the files are actually located.
Is there a way to address this in my child theme without modifying the parent theme’s header.php? I know the function bloginfo(‘template_directory’); returns the parent theme stylesheet dir but I’m not sure how to redefine this within the child theme.
Any Ideas? Thanks!
David
- The topic ‘Parent Theme's JS tries to load from child directory’ is closed to new replies.