Title: Adding sidebar to a default theme
Last modified: August 22, 2022

---

# Adding sidebar to a default theme

 *  [ketanco](https://wordpress.org/support/users/ketanco/)
 * (@ketanco)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/adding-sidebar-to-a-default-theme/)
 * Is adding one or two extra sidebars to a default theme easy? or plugins are needed?
   For example how can I add one or two sidebars to 2021 theme?

Viewing 1 replies (of 1 total)

 *  [Punit Trivedi](https://wordpress.org/support/users/pintutrivedi/)
 * (@pintutrivedi)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/adding-sidebar-to-a-default-theme/#post-15937009)
 * Hello [@ketanco](https://wordpress.org/support/users/ketanco/)
    You can create
   sidebar using this code copy in your active themes function.php file.
 *     ```
       function wpb_init_widgets_custom($id) {
       register_sidebar(array(
       'name' => 'Customsidebar-1',
       'id' => 'customsidebar-id',
       'before_widget' => '<div class="sidebar-module">',
       'after_widget' => '</div>',
       'before_title' => '<h4>',
       'after_title' => '</h4>'
       ));
       }
       add_action('widgets_init','wpb_init_widgets_custom');
       ```
   
 * OR.
    You can use this plugin for create extra sidebar. [https://www.greengeeks.in/tutorials/custom-sidebar-wordpress-theme/](https://www.greengeeks.in/tutorials/custom-sidebar-wordpress-theme/)
    -  This reply was modified 3 years, 9 months ago by [Punit Trivedi](https://wordpress.org/support/users/pintutrivedi/).
    -  This reply was modified 3 years, 9 months ago by [Punit Trivedi](https://wordpress.org/support/users/pintutrivedi/).

Viewing 1 replies (of 1 total)

The topic ‘Adding sidebar to a default theme’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Punit Trivedi](https://wordpress.org/support/users/pintutrivedi/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/adding-sidebar-to-a-default-theme/#post-15937009)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
