-
-
Save joshfitzgerald/5946257 to your computer and use it in GitHub Desktop.
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
<?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