Created
May 3, 2013 13:44
-
-
Save rezzz-dev/5509182 to your computer and use it in GitHub Desktop.
Snippet: WP: Widgets Init
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
function jr_widgets_init () | |
{ | |
if ( function_exists('register_sidebar') ) | |
register_sidebar( array( | |
'name' => __( 'Homepage Footer Area', 'twentyten' ), | |
'id' => 'homepage-widget-area', | |
'description' => __( 'Homepage Footer Area', 'twentyten' ), | |
'before_widget' => '<div id="%1$s" class="span4 widget-container %2$s">', | |
'after_widget' => '<div class="clear"></div></div>', | |
'before_title' => '<h3 class="jr-title widget-title">', | |
'after_title' => '</h3>', | |
) ); | |
} | |
add_action( 'widgets_init', 'jr_widgets_init' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment