- This topic has 9 replies, 2 voices, and was last updated 5 years, 4 months ago by
David.
-
AuthorPosts
-
December 10, 2020 at 5:23 am #1574231
detanatar
1) the validator shows that everything is fine
2) deactivate the page title
3) create a Header element
4) <h1 class = “entry-title” itemprop = “headline”> {{post_title}} </h1>
5) activate it for the whole site
6) the validator shows an error Warning: Article lacks heading. —- Consider using h2-h6 elements to add identifying headings to all articles.December 10, 2020 at 6:13 am #1574295detanatar
such an error occurs probably because the original H1 is located at the same level as
<article id=”post-2″ class=”post-2 page type-page status-publish has-post-thumbnail” itemtype=”https://schema.org/CreativeWork” itemscope>
and has the following form
<article id=”post-2″ class=”post-2 page type-page status-publish has-post-thumbnail” itemtype=”https://schema.org/CreativeWork” itemscope>
<header class=”entry-header”>
<h1 class=”entry-title” itemprop=”headline”>CONTENT</h1>
</header>if you insert an H1 element, then it is inserted above
<article id=”post-2″ class=”post-2 page type-page status-publish has-post-thumbnail” itemtype=”https://schema.org/CreativeWork” itemscope>
December 10, 2020 at 6:33 am #1574314David
StaffCustomer SupportHi there,
can you share a link to a page where i can see the validation issue?
December 10, 2020 at 6:40 am #1574320detanatar
sent access
main pageDecember 10, 2020 at 6:53 am #1574467detanatar
a validation error occurs when integrating your H1
December 10, 2020 at 7:31 am #1574518David
StaffCustomer SupportIt doesn’t look like your page has any other headings e.g H2 to H6 which seems to be main issue. Have you tried including a H2 in your content ?
December 10, 2020 at 7:54 am #1574546detanatar
when you turn on H2, the error disappears.
BUT
With the default H1, there is no error in the absence of other headersenabling H2 header masks the problem but does not solve
December 10, 2020 at 8:43 am #1574594David
StaffCustomer SupportIf you use the Header element to display the
<h1>post title then yes, it moves it outside of the article tag, this is a user design choice. If you want to maintain the H1 inside your content then you need to remove the H1 post title from the header element.But the simple fix is to include better heading structure in your content which is why the validator suggests
Consider using h2-h6 elements to add identifying headings to all articles.December 10, 2020 at 8:54 am #1574601detanatar
Thank you David.
I will take into account the futureDecember 10, 2020 at 4:10 pm #1575046David
StaffCustomer SupportYou’re welcome
-
AuthorPosts
- You must be logged in to reply to this topic.