Skip to content

Instantly share code, notes, and snippets.

@joshgreen
Created July 28, 2014 15:55
Show Gist options
  • Save joshgreen/187ae74aba2c48d470de to your computer and use it in GitHub Desktop.
Save joshgreen/187ae74aba2c48d470de to your computer and use it in GitHub Desktop.
Add widget area
register_sidebar( array(
'name' => 'new-text-widget-name',
'id' => 'left-sidebar',
'before_widget' => '<div id="%1$s" class="%2$s widget">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>'
) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment