Created
August 9, 2013 18:57
-
-
Save bradpotter/6196184 to your computer and use it in GitHub Desktop.
Enqueue Backstretch Scripts
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
//* Load Backstretch script and prepare images for loading | |
add_action( 'wp_enqueue_scripts', 'sixteen_nine_enqueue_scripts' ); | |
function sixteen_nine_enqueue_scripts() { | |
wp_enqueue_script( 'sixteen-nine-responsive-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' ); | |
wp_enqueue_script( 'sixteen-nine-backstretch', get_bloginfo( 'stylesheet_directory' ) . '/js/backstretch.js', array( 'jquery' ), '1.0.0' ); | |
wp_enqueue_script( 'sixteen-nine-backstretch-set', get_bloginfo('stylesheet_directory').'/js/backstretch-set.js' , array( 'jquery', 'sixteen-nine-backstretch' ), '1.0.0' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment