New heading structure - redux of #651. Provides proper semantic structure for titles throughout theme:
In header.php: Site title set to H1 on front page, div on other pages In functions.php: Widget title set to H2 for semantic hierarchy In content-search.php and content.php: Heading set to H2 as page title is "Search" or "Archive title" etc.
This commit is contained in:
parent
5bb0534358
commit
dc6d3fa08c
4 changed files with 9 additions and 5 deletions
|
@ -102,8 +102,8 @@ function _s_widgets_init() {
|
|||
'description' => '',
|
||||
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
|
||||
'after_widget' => '</aside>',
|
||||
'before_title' => '<h1 class="widget-title">',
|
||||
'after_title' => '</h1>',
|
||||
'before_title' => '<h2 class="widget-title">',
|
||||
'after_title' => '</h2>',
|
||||
) );
|
||||
}
|
||||
add_action( 'widgets_init', '_s_widgets_init' );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue