I am attempting to enqueue a script from my child theme's header just after the wordpress_hook, as well as the existence of me it isn't turning up - what gives?
// register your script location, dependencies and version
wp_register_script('jqtransform',
get_bloginfo('stylesheet_directory') . '/includes/jqtransformplugin/jquery.jqtransform.js', false);
// enqueue the script
wp_enqueue_script('jqtransform');
Here's the link.
Works out I desired to include enqueue_script BEFORE the wordpress_mind call, in addition to make use of a different URL path thingamabob. Here's the ultimate code:
function add_my_scripts(){
wp_register_script('jqtransform',
get_bloginfo('stylesheet_directory').'/includes/jqtransform/jquery.jqtransform.js', array('jquery'),'1.0');
wp_enqueue_script('jqtransform');
}
add_action('init', 'add_my_scripts');