Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add the file /functions.php into your theme...
#5
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.

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.
Reply


Messages In This Thread
RE: Add the file /functions.php into your theme... - by lnickel - 2013-10-10, 12:31:31



Users browsing this thread: 1 Guest(s)