Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fitvids.js on WordPress
<?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