Last active
December 15, 2015 08:58
-
-
Save braddalton/5234454 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' => '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