Created
October 29, 2011 23:36
-
-
Save billerickson/1325242 to your computer and use it in GitHub Desktop.
Register Sidebars
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 | |
/** | |
* Register Sidebars | |
* @link http://www.billerickson.net/wordpress-additional-sidebars/ | |
* @author Bill Erickson | |
* | |
*/ | |
function be_register_sidebars() { | |
register_sidebar( | |
array( | |
'id' => 'additional', | |
'name' => 'Additional Sidebar', | |
'description' => 'A short description of the sidebar.', | |
'before_widget' => '<div id="%1$s" class="%2$s">', | |
'after_widget' => '</div>', | |
'before_title' => '<h3 class="widget-title">', | |
'after_title' => '</h3>' | |
) | |
); | |
} | |
add_action( 'widgets_init', 'be_register_sidebars' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment