Created
October 6, 2015 11:32
-
-
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
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
// 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