Skip to content

Instantly share code, notes, and snippets.

@bradpotter
Created August 9, 2013 18:57
Show Gist options
  • Save bradpotter/6196184 to your computer and use it in GitHub Desktop.
Save bradpotter/6196184 to your computer and use it in GitHub Desktop.
Enqueue Backstretch Scripts
//* 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