wp_enqueue_script issues
-
hi, the scripts i enqueued in functions.php for my theme using
wp_enqueue_script()
arent displaying in source code, when site is loaded, indicating that the scripts aren’t being loaded in wp_head().
i check to see if they are queued with
wp_script_is('queue')
it returns true for all of them however
wp_script_is('to_do')
andwp_script_is('done')
return false
here is my code:function goldrush_js_enqueue(){ wp_deregister_script( 'jquery' ); wp_enqueue_script( 'jquery' );//wordpress provided jQuery library wp_enqueue_script( 'jquery.tweet', get_template_directory_uri() . '/js/jquery.tweet.js', array('jquery')); wp_enqueue_script( 'flexislider',get_template_directory_uri() . '/js/jquery.flexslider-min.js', array('jquery')); wp_enqueue_script( 'menujs',get_template_directory_uri() . '/js/menu.js', array('jquery')); wp_enqueue_script( 'flicker',get_template_directory_uri() . '/js/jflickrfeed.min.js', array('jquery')); wp_enqueue_script( 'quicksand', get_template_directory_uri() . '/js/custom.quicksand.js', array('jquery')); wp_enqueue_script( 'prettyphoto',get_template_directory_uri() . '/js/jquery.prettyPhoto.js', array('jquery')); } add_action('wp_enqueue_scripts', 'goldrush_js_enqueue');
please help, its urgent, thanks
Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)
- The topic ‘wp_enqueue_script issues’ is closed to new replies.