Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Register Sidebar

// Register Sidebar
function custom_sidebar() {

	$args = array(
		'id'            => 'name',
		'name'          => __( 'Name', 'text_domain' ),
		'description'   => __( 'Here is a description.', 'text_domain' ),
		'class'         => 'class-name',
		'before_title'  => '<h4>',
		'after_title'   => '</h4>',
	);
	register_sidebar( $args );

}

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