Four Widget areas with bootstrap classes
if ( ! function_exists( 'footer_widgets' ) ) {
// Register Sidebars
function footer_widgets() {
$args = array(
'id' => 'footer-widgets-1',
'class' => 'col-sm-6 col-md-3',
'name' => __( 'Footer Widgets Area 1', 'text_domain' ),
'description' => __( 'First Footer Widget Area', 'text_domain' ),
);
register_sidebar( $args );
$args = array(
'id' => 'footer-widgets-2',
'class' => 'col-sm-6 col-md-3',
'name' => __( 'Footer Widgets Area 2', 'text_domain' ),
'description' => __( 'Second Footer Widget Area', 'text_domain' ),
);
register_sidebar( $args );
$args = array(
'id' => 'footer-widgets-3',
'class' => 'col-sm-6 col-md-3',
'name' => __( 'Footer Widgets Area 3', 'text_domain' ),
'description' => __( 'Third Footer Widget Area', 'text_domain' ),
);
register_sidebar( $args );
$args = array(
'id' => 'footer-widgets-4',
'class' => 'col-sm-6 col-md-3',
'name' => __( 'Footer Widgets Area 4', 'text_domain' ),
'description' => __( 'Fourth Footer Widget Area', 'text_domain' ),
);
register_sidebar( $args );
}
add_action( 'widgets_init', 'footer_widgets' );
}