Skip to content

Instantly share code, notes, and snippets.

@braddalton
Created April 10, 2013 02:06
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 braddalton/5351168 to your computer and use it in GitHub Desktop.
Save braddalton/5351168 to your computer and use it in GitHub Desktop.
genesis_register_sidebar( array(
'id' => 'after-header',
'name' => __( 'After Header Widget', 'eleven40' ),
'description' => __( 'This is the after header widget area.', 'eleven40' ),
) );
add_action( 'genesis_after_header', 'wpsites_after_header_widget', 9 );
function wpsites_after_header_widget() {
if ( is_home() && is_active_sidebar( 'after-header' ) ) {
echo '<div class="after-header">';
dynamic_sidebar( 'after-header' );
echo '</div><!-- end .after-header -->';
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment