Created
February 22, 2015 07:57
-
-
Save neilgee/e80b1c3a8ce95d44fe16 to your computer and use it in GitHub Desktop.
Fitvids.js on WordPress
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
<?php | |
//* Enqueue fitvids.js scripts | |
add_action( 'wp_enqueue_scripts', 'fitvids_enqueue_scripts' ); | |
function fitvids_enqueue_scripts() { | |
wp_enqueue_script( 'fitvids', get_bloginfo( 'stylesheet_directory' ) . '/js/jquery.fitvids.js', array( 'jquery' ), '1.1' ); | |
wp_enqueue_script( 'fitvids-init', get_bloginfo( 'stylesheet_directory' ) . '/js/fitvids-init.js', array( 'fitvids' ), '1.1' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment