Last active
February 26, 2017 13:35
-
-
Save janmejai/e76342117c6fb7b94e04f1b8f44d0d16 to your computer and use it in GitHub Desktop.
enqueue typed scripts in WordPress
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 typed scripts | |
add_action( 'wp_enqueue_scripts', 'my_typed_scripts' ); | |
function my_typed_scripts() { | |
wp_enqueue_script( 'typed', get_stylesheet_directory_uri() . '/js/typed.js', array( 'jquery' ) ); // edit js file location | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment