Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save joshfitzgerald/5946257 to your computer and use it in GitHub Desktop.
Save joshfitzgerald/5946257 to your computer and use it in GitHub Desktop.
<?php
/**
* Set up Widget Areas (Dynamic Sidebars)
*/
register_sidebar( array(
'name' => 'Home Features',
'description' => 'An area near the bottom of the home page',
'id' => 'home-features',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>'
) );
register_sidebar( array(
'name' => 'Blog Sidebar',
'description' => 'An area next to all blog content, search, and archives',
'id' => 'blog-sidebar',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>'
) );
register_sidebar( array(
'name' => 'Page Sidebar',
'description' => 'An area next to each page',
'id' => 'page-sidebar',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>'
) );
register_sidebar( array(
'name' => 'Footer Area',
'description' => 'Area at the bottom of every view',
'id' => 'footer-area',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'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