Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //* Enqueue scripts for BigVideo
- add_action( 'wp_enqueue_scripts', 'sk_enqueue_scripts' );
- function sk_enqueue_scripts() {
- if ( ! is_home() ) {
- return;
- }
- wp_enqueue_script( 'imagesloaded', get_bloginfo( 'stylesheet_directory' ) . '/js/imagesloaded.pkgd.min.js', array( 'jquery' ), '', true );
- wp_enqueue_script( 'jquery-ui-slider' );
- wp_enqueue_script( 'bigvideo', get_bloginfo( 'stylesheet_directory' ) . '/js/bigvideo.js', array( 'jquery' ), '', true );
- wp_enqueue_script( 'bigvideo-init', get_bloginfo( 'stylesheet_directory' ) . '/js/bigvideo-init.js', array( 'bigvideo' ), '1.0.0', true );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement