1<div class="container">
2 <div class="row">
3 <div class="col-md-3">
4 <div id="footer1" class="widget1">
5 <?php dynamic_sidebar('cust_footer_1'); ?>
6 </div>
7 </div>
8 <div class="col-md-3">
9 <div id="footer2" class="widget1">
10 <?php dynamic_sidebar('cust_footer_2'); ?>
11 </div>
12 </div>
13 <div class="col-md-3">
14 <div id="footer3" class="widget1">
15 <?php dynamic_sidebar('footer-3'); ?>
16 </div>
17 </div>
18 <div class="col-md-3">
19 <div id="footer4" class="widget1">
20 <?php dynamic_sidebar('footer-4'); ?>
21 </div>
22 </div>
23 </div>
24 </div>
1add_action( 'init', 'cust_widget' );
2function cust_widget()
3{
4 register_sidebar( array(
5 'name' => 'Widget1',
6 'id' => 'cust_footer_1',
7 'before_widget' => '<div class="cst_widget">',
8 'after_widget' => '</div>'
9
10 ) );
11
12 register_sidebar( array(
13 'name' => 'Widget2',
14 'id' => 'cust_footer_2',
15 'before_widget' => '<div class="cst_widget">',
16 'after_widget' => '</div>'
17 ) );
18
19 register_sidebar( array(
20 'name' => 'Widget3',
21 'id' => 'footer-3',
22 'before_widget' => '<div class="cst_widget">',
23 'after_widget' => '</div>'
24 ) );
25
26 register_sidebar( array(
27 'name' => 'footer-4',
28 'id' => 'footer-4',
29 'before_widget' => '<div class="cst_widget">',
30 'after_widget' => '</div>'
31
32 ) );
33}