Skip to content

Instantly share code, notes, and snippets.

@braddalton
Last active May 13, 2017 16:13
Show Gist options
  • Save braddalton/5560083 to your computer and use it in GitHub Desktop.
Save braddalton/5560083 to your computer and use it in GitHub Desktop.
genesis_register_sidebar( array(
'id' => 'header-left',
'name' => __( 'Header Left', 'wpsites' ),
'description' => __( 'Header left widget area', 'wpsites' ),
) );
/**
* @author Brad Dalton WP Sites
* @example http://wp.me/p1lTu0-9VA
*/
add_action( 'genesis_header', 'wpsites_left_header_widget', 11 );
function wpsites_left_header_widget() {
if (is_active_sidebar( 'header-left' ) ) {
genesis_widget_area( 'header-left', array(
'before' => '<div class="header-left">',
'after' => '</div>',
) );
}}
@papabear53
Copy link

I have the Prose theme and this is exactly what I am trying to do. I put this in my Genesis/Custom Code area, under Functions, but when I go to Appearance/Widgets I don't see a Header Left Widget. Is there something I'm missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment