From ea1ae12cc403a00435bb30ced8c525324326fcb4 Mon Sep 17 00:00:00 2001 From: "Thomas A. Reinert" Date: Wed, 2 Mar 2016 23:46:24 +0100 Subject: [PATCH 1/4] Update content-single.php Adding class="customclass" after post_class() inserts a _second_ class-attribute, which will neither work as expected nor validate. Solution added. --- loop-templates/content-single.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loop-templates/content-single.php b/loop-templates/content-single.php index a38acf6..b9a975c 100644 --- a/loop-templates/content-single.php +++ b/loop-templates/content-single.php @@ -4,7 +4,7 @@ */ ?> -
class="content-single-item"> +
>
From 5189f06c6d4c9eb0b00af5588c05e2cd1df1ce83 Mon Sep 17 00:00:00 2001 From: "Thomas A. Reinert" Date: Wed, 2 Mar 2016 23:49:13 +0100 Subject: [PATCH 2/4] Update content-search.php Adding class="customclass" after post_class() inserts a _second_ class-attribute, which will neither work as expected nor validate. Solution added. --- loop-templates/content-search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loop-templates/content-search.php b/loop-templates/content-search.php index 154e8a7..2708be4 100644 --- a/loop-templates/content-search.php +++ b/loop-templates/content-search.php @@ -8,7 +8,7 @@ */ ?> -
class="content-search-item"> +
>
From bb229380ab382f84d070a0aab22781f517d3082b Mon Sep 17 00:00:00 2001 From: "Thomas A. Reinert" Date: Wed, 2 Mar 2016 23:50:57 +0100 Subject: [PATCH 3/4] Update content-none.php Adding class="customclass" after post_class() inserts a _second_ class-attribute, which will neither work as expected nor validate. For multiple classes, an array with the classes needs to be constructed. Solution added. --- loop-templates/content-none.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/loop-templates/content-none.php b/loop-templates/content-none.php index 82fd42a..360e4a8 100644 --- a/loop-templates/content-none.php +++ b/loop-templates/content-none.php @@ -6,9 +6,15 @@ * * @package understrap */ + + $classes = array( + 'content-no-results-page', + 'not-found', +); + ?> -
class="content-no-results-page not-found"> +
>