Last active
January 21, 2019 07:14
-
-
Save bhwebworks/6552367 to your computer and use it in GitHub Desktop.
This file contains 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
/** | |
* 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