Skip to content

Instantly share code, notes, and snippets.

@gWorldz
Last active December 16, 2018 13:56
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gWorldz/76273b5901e1b5c4759b to your computer and use it in GitHub Desktop.
Save gWorldz/76273b5901e1b5c4759b to your computer and use it in GitHub Desktop.
Registering Dynamic Widget Area Snippet 1 of 3
function exodus_widgets_init() {
register_sidebar( array(
'name' => __( 'Footer Area Four', 'twentyeleven-exodus' ),
'id' => 'sidebar-6',
'description' => __( 'An optional full width widget area for your site footer', 'twentyeleven-exodus' ),
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => "</aside>",
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
}
add_action( 'widgets_init', 'exodus_widgets_init', 99 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment