Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Genesis Featured Image Lightbox http://wpsites.net/download/101989/
add_action( 'wp_enqueue_scripts', 'genesis_enqueue_lightbox_script_styles' );
function genesis_enqueue_lightbox_script_styles() {
wp_enqueue_script( 'lightbox-js', get_stylesheet_directory_uri() . '/lightbox.js', [ 'jquery' ], genesis_get_theme_version(), true );
wp_enqueue_style( 'lightbox-styles', get_stylesheet_directory_uri() . '/lightbox.css', [], genesis_get_theme_version() );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment