Last active
May 13, 2017 16:13
-
-
Save braddalton/5560083 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
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>', | |
) ); | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.