• 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.