Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DavidWells/4199733 to your computer and use it in GitHub Desktop.
Save DavidWells/4199733 to your computer and use it in GitHub Desktop.
Wordpress :: Add jQuery Script with enqueue
/** Add jquery script for responsive slider
This is for use with a child theme!
If not use: get_template_directory_uri() instead
*/
function fws_add_the_scripts() {
wp_enqueue_script(
'custom_script',
get_stylesheet_directory_uri() . '/js/responsiveslides.min.js',
array('jquery')
);
}
add_action('wp_enqueue_scripts', 'fws_add_the_scripts');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment