Step one: Register the new sidebar through functions.php
// AWK: register a new sidebar for the HEADER
function awk_custom_sidebar() {
register_sidebar(
array(
'name' => __( 'AWK - Header', 'simplesidebar' ),
'id' => 'awk-header',
'description' => __( 'AWK - Header', 'A simple sidebar ready to go' ),
'before_widget' => '<div class="widget-content">',
'after_widget' => "</div>",
'before_title' => '<h2 class="widget-title">',
'after_title' => '</h2>',
)
);
}
add_action( 'widgets_init', 'awk_custom_sidebar' );
Step 2: Insert the code in your page (i.e. header.php) to display the sidebar
<?php
if ( is_active_sidebar( 'awk-header' ) ) :
dynamic_sidebar( 'awk-header' );
endif;
?>
Add a widget inside the new sidebar to check it.