Created
December 1, 2013 09:10
-
-
Save philipgledhill/7730240 to your computer and use it in GitHub Desktop.
Genesis Framework widget areas originally provided by Brian Gardner
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
/** Register widget areas */ | |
genesis_register_sidebar( array( | |
'id' => 'welcome-text', | |
'name' => __( 'Welcome Text', 'genesis' ), | |
'description' => __( 'This is the welcome text widget.', 'themename' ), | |
) ); | |
/** Add the welcome text section */ | |
add_action( 'genesis_before_content_sidebar_wrap', 'custom_welcome_text' ); | |
function custom_welcome_text() { | |
genesis_widget_area( 'welcome-text', array( | |
'before' => '<div class="welcome-text widget-area">', | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment