Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/*
* Load jQuery FancyBox Modal!
*/
add_action('wp_enqueue_scripts', 'fancbox_scripts');
function fancbox_scripts() {
wp_enqueue_style('fancybox-style', get_template_directory_uri().'/fancybox/jquery.fancybox.css', false ,'2.1.5', 'all' );
wp_enqueue_script('fancybox', get_template_directory_uri().'/fancybox/jquery.fancybox.min.js', array('jquery'),'2.1.51', true );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment