Created
April 20, 2015 03:48
-
-
Save pixelcoder/888a50195deff20db555 to your computer and use it in GitHub Desktop.
WordPress: Register sidebar
This file contains hidden or 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
# Register Sidebar | |
$args = array( | |
'name' => __('Sidebar', 'nantre'), | |
'id' => 'wp-sidebar', | |
'description' => 'Add widgets to the sites Sidebar, all default WordPress widgets are supported', | |
'before_widget' => '<div class="widget %2$s">', | |
'after_widget' => '</div>', | |
'before_title' => '<h4>', | |
'after_title' => '</h4>' | |
); | |
register_sidebar($args); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment