Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

SideBar

default sidebar widget

// Register Sidebar
function sidebar() {

	$args = array(
		'id'            => 'sidebar',
		'name'          => __( 'defaultSideBar', 'text_domain' ),
		'description'   => __( 'Default sidebar for blogfit', 'text_domain' ),
		'class'         => 'widget',
		'before_title'  => '<h3 class="widgetitle">',
		'after_title'   => '</h3>',
		'before_widget' => '<li id="%1$s" class="widget %2$s">',
		'after_widget'  => '</li>',
	);
	register_sidebar( $args );

}

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