From dc6d3fa08ca3669081ebac794d6046b385088552 Mon Sep 17 00:00:00 2001 From: Morten Rand-Hendriksen Date: Sun, 28 Jun 2015 12:06:02 -0700 Subject: [PATCH] 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. --- functions.php | 4 ++-- header.php | 6 +++++- template-parts/content-search.php | 2 +- template-parts/content.php | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/functions.php b/functions.php index 61bc7a1..f3d2a53 100644 --- a/functions.php +++ b/functions.php @@ -102,8 +102,8 @@ function _s_widgets_init() { 'description' => '', 'before_widget' => '', - 'before_title' => '

', - 'after_title' => '

', + 'before_title' => '

', + 'after_title' => '

', ) ); } add_action( 'widgets_init', '_s_widgets_init' ); diff --git a/header.php b/header.php index 03ec202..1934792 100644 --- a/header.php +++ b/header.php @@ -24,7 +24,11 @@