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

Replace get_theme_url() by get_theme_url(false) to return the value instead of echoing it.
Reply


Messages In This Thread
RE: Add the file /functions.php into your theme... - by Carlos - 2013-10-10, 15:47:05



Users browsing this thread: 1 Guest(s)