I'm trying to add another sidebar widget area under the main one in Twenty Eleven. I'm not sure if I've done it right, but it seems to work. The only issue so far is in appearance > widgets it shows up at the top of the list, when I want it to display as the second one on the list.
This is how I did it in case that info is needed. I made a copy of sidebar.php and renamed it to sidebar-extra.php then changed
<?php if ( ! dynamic_sidebar( 'sidebar-6' ) ) : ?> in it, which is the name of my widget area.
I added the sidebar call to index.php
<?php get_sidebar( 'extra' ); ?>
And in my functions I added
register_sidebar( array( 'name' => __( 'Sidebar area two', 'child-theme' ), 'id' => 'sidebar-6', 'description' => __( 'An optional widget area for your sidebar', 'child-theme' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => "</aside>", 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) );
Is there something I can add to this to put it in the proper position in widget options?