Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

sidebar

// Register Sidebars
function custom_sidebars() {

	$args = array(
		'id'            => 'blog_sidebar',
		'class'         => 'col-md-4 sidebar-widget',
		'name'          => __( 'Blog sidebar', 'pandit_ji' ),
		'description'   => __( 'SideBar for blog', 'pandit_ji' ),
		'before_title'  => '<div class="title-widget"><div class="title">',
		'after_title'   => '</div></div>',
		'before_widget' => '<div class="col-2">',
		'after_widget'  => '</div>',
	);
	register_sidebar( $args );

}
add_action( 'widgets_init', 'custom_sidebars' );