[wd_asp elements=’search’ ratio=’100%’ id=1]

Enqueue scripts wordpress

1st December 2015

Wordpress - Miscellaneous

wordpress category

// Register Script

Add this to your functions.php file, and it will then load the file, in this case a javascript file called calc.js.

This should be the full url

function calculator() {

wp_register_script( 'calculator', 'http://aq.gthex.co.uk:10000/js/calc.js', array( 'jquery' ), '1.1', false );
wp_enqueue_script( 'calculator' );

}
add_action( 'wp_enqueue_scripts', 'calculator' );