Snippets: Alter The Blog Entry & Post Gallery Slider Settings

// Filter the data attributes to add to the blog gallery slider wrapper
add_filter( 'wpex_blog_slider_data_atrributes', function( $attributes ) {
	
	// Alter your settings
	$attributes['auto-play']         = 'false';
	$attributes['buttons']           = 'false';
	$attributes['fade']              = 'true';
	$attributes['loop']              = 'true';
	$attributes['thumbnails-height'] = '60';
	$attributes['thumbnails-width']  = '60';

	// Return attributes
	return $attributes;

} );

Snippet Type: PHP

Posted Under: Blog

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