Title: Multiple sidebar styles
Last modified: August 19, 2016

---

# Multiple sidebar styles

 *  [lowercase001](https://wordpress.org/support/users/lowercase001/)
 * (@lowercase001)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/multiple-sidebar-styles/)
 * I have a sidebar that uses 4 widgets. Usually all widgets in a sidebar would 
   use the same box/div style and the same heading style by adding code to the before_widget/
   after_widget function like below…
 *     ```
       <?php
       if ( function_exists('register_sidebar') ) {
          register_sidebar(array(
              'before_title' => '<div class="title-text" id="title-media-player">',
              'after_title' => '</div>',
              'before_widget' => '<div id="content-box">',
              'after_widget' => '</div>',
   
          ));
       }
       ?>
       ```
   
 * In this site, however, I want to give each box a different colored background
   and a different heading style/color.
 * Box 1 – blue background.
    Box 2 – red background. Box 3 – green background. Box
   4 – orange backgroud.
 * How would I go about achieving this and getting each box/widget to display differently
   in the same sidebar?
 * Any help appreciated.

The topic ‘Multiple sidebar styles’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [different](https://wordpress.org/support/topic-tag/different/)
 * [multiple](https://wordpress.org/support/topic-tag/multiple/)
 * [sidebar](https://wordpress.org/support/topic-tag/sidebar/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * 0 replies
 * 1 participant
 * Last reply from: [lowercase001](https://wordpress.org/support/users/lowercase001/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/multiple-sidebar-styles/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
