Skip to content

Instantly share code, notes, and snippets.

  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save bhwebworks/6552367 to your computer and use it in GitHub Desktop.
/**
* 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