Created
January 10, 2016 21:50
-
-
Save cameck/3f94b69a789f8c4e8a03 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
// Replace header hook to include slider | |
remove_action( 'genesis_header', 'genesis_do_header' ); | |
add_action( 'genesis_header', 'genesis_do_new_header' ); | |
function genesis_do_new_header() { | |
//add your custom slider shortcode here: | |
echo do_shortcode('[rev_slider alias="main"][/rev_slider]'); | |
if ( is_active_sidebar( 'header-right' ) || has_action( 'genesis_header_right' ) ) { | |
echo '<div class="widget-area">'; | |
do_action( 'genesis_header_right' ); | |
dynamic_sidebar( 'header-right' ); | |
echo '</div><!-- end .widget-area -->'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment