<div id="left">
<?php if ( is_active_sidebar( 'sidebar-left' ) ) : ?>
<div id="left-sidebar" class="left-sidebar widget-area" role="complementary">
<?php dynamic_sidebar( 'sidebar-left' ); ?>
</div>
<?php endif; ?>
</div>
This is for a new file created for the sidebar called ‘sidebar-left.php’
function mychild_widgets_init() {
register_sidebar( array(
'name' => __( 'Left Widget Area', 'twentyfourteen' ),
'id' => 'sidebar-left',
'description' => __( 'Left sidebar.', 'twentyfourteen' ),
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>',
) );
}
add_action( 'widgets_init', 'mychild_widgets_init' );
And that’s what I added to the ‘functions.php’ file I created. Then that text shows up on the top of the site, admin dashboard or signed out..