jquery - wp_enqueue_script() no longer working in my function.php file -


We developed / started a summer, which used custom JS script to add slate to slider images.

All were working well, until recently we saw that the slider sprat was no longer displayed. From a deep depth I found that a custom JS file is being created which is not being added to the header of our site. Here are our codes in our codes. There are codes, which we had recently started the site, as well as months after work:

  function bd_slider_script () {if_front_page ()) {wp_enqueue_script ("jquery") ; Wp_enqueue_script ('slider-switch', get_stylesheet_directory_uri (). '/includes/slider_swatches.js', array ('jquery'), '05122014', true); }} Add_action ('wp_enqueue_scripts', 'bd_slider_script', 11);  

Does the latest version of WordPress update this script? Or am I missing?


Comments