Skip to content

Snippet: Change Lightbox Gallery To Vertical Scroll

/**
 * Change Lightbox Gallery To Vertical Scroll
 *
 * @link http://total.wpexplorer.com/docs/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 );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top