Created
March 8, 2017 16:14
-
-
Save media317/3c4ca1f01c75d3a5e68de200637403b0 to your computer and use it in GitHub Desktop.
Code to enqueue clipboard.js to WordPress functions.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* 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