/** | |
* Add a slider to the home page, if there is one to add | |
* | |
* @link http://blackhillswebworks.com/?p=4986 | |
*/ | |
add_action( 'genesis_before_content', 'metro_home_add_soliloquy_slider' ); | |
function metro_home_add_soliloquy_slider() { | |
if ( function_exists( 'soliloquy' ) ) { // check for Soliloquy v2 first | |
soliloquy( '215' ); // Change '215' to the ID of your slider | |
} elseif ( function_exists( 'soliloquy_slider' ) ) { | |
soliloquy_slider( '215' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment