Skip to content

Instantly share code, notes, and snippets.

@amdrew amdrew/gist:5942621
Last active Dec 19, 2015

What would you like to do?
Load the required JS call in footer for Easy Image Gallery
function my_theme_easy_image_gallery_js() {
$lightbox = function_exists( 'easy_image_gallery_get_lightbox' ) ? easy_image_gallery_get_lightbox() : '';
if ( 'colorbox' == $lightbox ) { ?>
jQuery(document).ready(function() {
<?php }
add_action( 'easy_image_gallery_js', 'my_theme_easy_image_gallery_js' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.