Skip to content

Instantly share code, notes, and snippets.

@cameck
Created January 10, 2016 21:50
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 cameck/3f94b69a789f8c4e8a03 to your computer and use it in GitHub Desktop.
Save cameck/3f94b69a789f8c4e8a03 to your computer and use it in GitHub Desktop.
// 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