Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Code to enqueue clipboard.js to WordPress functions.php
//* Enqueue Scripts
add_action( 'wp_enqueue_scripts', 'load_responsive_javascript' );
function load_responsive_javascript() {
wp_enqueue_script( 'clipboard', get_stylesheet_directory_uri() . '/js/clipboard.js', array( 'jquery' ), '1.0.0' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment