2013-10-10, 12:31:31
Sorry to bump this back up.
I'm trying ot add my scripts in the function.php but am having a bit of a fuss getting it to work.
Here is what I have so far. I kind of like working this way instead of adding them directly into the template.
Yeh...not working. It prints out the url but not in the script tag.
I'm trying ot add my scripts in the function.php but am having a bit of a fuss getting it to work.
Here is what I have so far. I kind of like working this way instead of adding them directly into the template.
PHP Code:
function add_scripts() {
echo "<script src='". get_theme_url() . "/js/utility.js'></script>";
}
add_action('theme-header','add_scripts');
Yeh...not working. It prints out the url but not in the script tag.