Snippets: Change Lightbox Gallery To Vertical Scroll

/**
 * Change Lightbox Gallery To Vertical Scroll
 *
 * @link http://wpexplorer-themes.com/total/snippets/change-lightbox-gallery-vertical/
 *
 */
function myprefix_ilightbox_settings( $array ) {

	// Alter lightbox path
	$array['iLightbox']['path'] = 'vertical';

	// Return localize array - NEVER remove!!!
	return $array;

}
add_filter( 'wpex_localize_array', 'myprefix_ilightbox_settings', 99 );

Snippet Type: PHP

Posted Under: Lightbox

All PHP snippets should be added via a child theme's functions.php file.