wp_enqueue_scripts leads to error

I was using a genesis child theme so had to edit my order_tracking() function a little. get_template_directory_uri() gives the URL to the current child theme, combining that with the javascript filename did the trick. Here’s what got it working: function order_tracking() { global $post; if ( $post->ID == 19851 ) { wp_enqueue_script(‘ordertracking’, get_template_directory_uri(). “/ordertracking.js”, array(‘jquery’) … Read more