Created
December 10, 2015 13:03
-
-
Save farookibrahim/23e6a64994260ef582ae to your computer and use it in GitHub Desktop.
Add custom scripts in child theme
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
function my_scripts_method() { | |
wp_enqueue_script( 'custom-scripts', get_stylesheet_directory_uri() . 'scripts.js' ); | |
} | |
add_action('wp_enqueue_scripts', 'my_scripts_method'); | |
// Add scripts.js file in your child theme and add your custom js code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment