Snippet: 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;
} );
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)
We recommend Code Snippets (100% Free) or WPCode (sponsored)