Skip to content

Instantly share code, notes, and snippets.

@rezzz-dev
Created May 3, 2013 13:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rezzz-dev/5509182 to your computer and use it in GitHub Desktop.
Save rezzz-dev/5509182 to your computer and use it in GitHub Desktop.
Snippet: WP: Widgets Init
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