Created
April 26, 2018 05:44
-
-
Save anwerashif/02c70fbd9340a7541f807c8e041aec04 to your computer and use it in GitHub Desktop.
Enqueue JS file to functions.php
This file contains hidden or 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
<?php | |
// Do NOT include opening PHP tag. | |
// Enqueue 'sound.js' | |
add_action('wp_enqueue_scripts', 'sound_scripts'); | |
function sound_scripts() { | |
wp_register_script( 'app-sound-js', get_stylesheet_directory_uri() .'/js/rainastudio.js', array( 'jquery' ), CHILD_THEME_VERSION, true ); | |
wp_enqueue_script( 'app-sound-js' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment