Merge pull request #867 from WPAddiction/change-aside

Use a single aside for sidebar element, with sections for each widget.
This commit is contained in:
sarah ✈ semark 2015-11-30 18:11:36 +00:00
commit 181dda8f01
2 changed files with 4 additions and 4 deletions

View File

@ -102,8 +102,8 @@ function _s_widgets_init() {
'name' => esc_html__( 'Sidebar', '_s' ), 'name' => esc_html__( 'Sidebar', '_s' ),
'id' => 'sidebar-1', 'id' => 'sidebar-1',
'description' => '', 'description' => '',
'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>', 'after_widget' => '</section>',
'before_title' => '<h2 class="widget-title">', 'before_title' => '<h2 class="widget-title">',
'after_title' => '</h2>', 'after_title' => '</h2>',
) ); ) );

View File

@ -12,6 +12,6 @@ if ( ! is_active_sidebar( 'sidebar-1' ) ) {
} }
?> ?>
<div id="secondary" class="widget-area" role="complementary"> <aside id="secondary" class="widget-area" role="complementary">
<?php dynamic_sidebar( 'sidebar-1' ); ?> <?php dynamic_sidebar( 'sidebar-1' ); ?>
</div><!-- #secondary --> </aside><!-- #secondary -->