Skip to content

Instantly share code, notes, and snippets.

@aaronhartland
Last active December 26, 2015 21:29
Show Gist options
  • Save aaronhartland/7215975 to your computer and use it in GitHub Desktop.
Save aaronhartland/7215975 to your computer and use it in GitHub Desktop.
Setting the Genesis Responsive Slider defaults.
<?php
//* Do NOT include the opening php tag
//* Set Genesis Responsive Slider defaults
add_filter( 'genesis_responsive_slider_settings_defaults', 'latitude_responsive_slider_defaults' );
function latitude_responsive_slider_defaults( $defaults ) {
$args = array(
'posts_num' => '3',
'slideshow_pager' => '',
'slideshow_height' => '400',
'slideshow_width' => '980',
'slideshow_excerpt_content' => 'full',
'slideshow_excerpt_content_limit' => '200',
'slideshow_more_text' => __( 'Continue Reading&hellip;', 'latitude' ),
'slideshow_excerpt_width' => '63',
'slideshow_title_show' => 1,
'location_horizontal' => 'right',
'location_vertical' => 'bottom'
);
$args = wp_parse_args( $args, $defaults );
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment