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.
This commit is contained in:
Thomas A. Reinert 2016-03-02 23:50:57 +01:00
parent 5189f06c6d
commit bb229380ab
1 changed files with 7 additions and 1 deletions

View File

@ -6,9 +6,15 @@
*
* @package understrap
*/
$classes = array(
'content-no-results-page',
'not-found',
);
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> class="content-no-results-page not-found">
<article id="post-<?php the_ID(); ?>" <?php post_class($classes); ?>>
<header class="page-header">