Created
June 29, 2014 10:48
-
-
Save JanHoek/17469ea722806e826a7a to your computer and use it in GitHub Desktop.
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
// Enqueue Scripts/Styles for our Lightbox | |
function child_theme_add_lightbox() { | |
wp_enqueue_script( 'fancybox', get_bloginfo( 'stylesheet_directory' ) . '/js/jquery.fancybox.pack.js', array( 'jquery' ), false, true ); | |
wp_enqueue_script( 'lightbox', get_bloginfo( 'stylesheet_directory' ) . '/js/lightbox.js', array( 'fancybox' ), false, true ); | |
wp_enqueue_style( 'lightbox-style', get_bloginfo( 'stylesheet_directory' ) . '/css/jquery.fancybox.css' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'child_theme_add_lightbox' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment