Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fernandiez/dc370c938fb0814ddbcc to your computer and use it in GitHub Desktop.
Save fernandiez/dc370c938fb0814ddbcc to your computer and use it in GitHub Desktop.
Display Soliloquy WordPress Slider in Home of Front Page after header - Genesis Framework
// Display Soliloquy WordPress Slider in Home of Front Page after header - Genesis Framework
add_action( 'genesis_after_header', 'recreate_soliloquy_slider' );
/**
* Display Soliloquy WordPress Slider in Home of Front Page after header - Genesis Framework
* Scope: Homepage or Front page.
* @author Sridhar Katakam
* @link http://sridharkatakam.com/
*/
function recreate_soliloquy_slider() {
if( ! ( is_home() || is_front_page() ) ) {
return;
}
if ( function_exists( 'soliloquy' ) ) { // Check for Soliloquy
soliloquy( '3813' ); // Change '3831' ID for yours
} elseif ( function_exists( 'soliloquy_slider' ) ) {
soliloquy_slider( '3813' );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment