Skip to content

Instantly share code, notes, and snippets.

@braddalton
Last active December 15, 2015 08:58
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/5234454 to your computer and use it in GitHub Desktop.
Save braddalton/5234454 to your computer and use it in GitHub Desktop.
genesis_register_sidebar( array(
'id' => 'welcome-text',
'name' => __( 'Welcome Text', 'eleven40' ),
'description' => __( 'This is the welcome text widget.', 'eleven40' ),
) );
function custom_welcome_text() {
if ( is_home() && is_active_sidebar( 'welcome-text' ) ) {
genesis_widget_area( 'welcome-text', array(
'before' => '<div class="welcome-text widget-area">',
'after' => '</div>',
) );
}
}
add_action( 'genesis_after_header', 'custom_welcome_text' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment