wordpress-bootstrap icon indicating copy to clipboard operation
wordpress-bootstrap copied to clipboard

multiple widget in a footer sidebar appearing in a row

Open potasiyam opened this issue 13 years ago • 0 comments

The footer has 3 sidebars, footer1 footer2 and footer3. They all are div class span4. But the problem is in any one of the sidebar has two widgets they appear side by side instead of one column. I investigated the problem and found this in functions.php file line 91

      'before_widget' => '<div id="%1$s" class="widget span4 %2$s">',

Because of this lines, span4 class was being applied to every widget, and they were appearing in same row. This should be changed like-

      'before_widget' => '<div id="%1$s" class="widget %2$s">',

And in footer.php from line 5

                  <div id="widget-footer" class="clearfix row-fluid">
                  <div class="span4">
                    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footer1') ) : ?>
                    <?php endif; ?>
                </div>
...

Hope you guys come up with a better solution.

potasiyam avatar Dec 29 '12 17:12 potasiyam