Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

sidebar

// Register Sidebar
function divine_sidebar() {

	$args = array(
		'id'            => 'sidebar-2',
		'name'          => __( 'sidebar2', 'text_domain' ),
		'description'   => __( 'sidebar', 'text_domain' ),
		'class'         => 'sidebar2',
	);
	register_sidebar( $args );

}

// Hook into the 'widgets_init' action
add_action( 'widgets_init', 'divine_sidebar' );