Created
April 16, 2014 18:06
-
-
Save brycejacobson/10914962 to your computer and use it in GitHub Desktop.
Set slider defaults in v2 of Soliloquy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add Soliloquy defaults. | |
*/ | |
add_filter( 'soliloquy_defaults', 'tgm_soliloquy_default_settings', 20, 2 ); | |
function tgm_soliloquy_default_settings( $defaults, $post_id ) { | |
$defaults['slider_width'] = 800; // Slider width. | |
$defaults['slider_height'] = 400; // Slider height. | |
$defaults['control'] = 0; // Turns navigation pagination off by default. | |
$defaults['duration'] = 10000; // Set duration of slide to longer time. | |
$defaults['slider_size'] = 'full_width'; // Dimensions. | |
return $defaults; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment