forked from mirror/_s
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:
commit
181dda8f01
|
@ -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>',
|
||||||
) );
|
) );
|
||||||
|
|
|
@ -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 -->
|
||||||
|
|
Reference in New Issue