XF 2.1 Error in structured data breadcrumbs

Mr Lucky

Well-known member
I am gettin an error (One of name or item.name must be provided.)


Seems to be this:

<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">

Does anyone know what could be causing this?

Thanks
 
What is the content within that li tag?
No idea, it's just the line in the code that the test referred to when you click on the error
Also, not actually seeing any error reported on the tool URL you linked to.

The error is back. I think I had actually fixed it before posting but didn't know due probably to some caching:


  • The Home navigataion tab was a font awesome icon - that's when I got the errors
  • I changed it to text "Home" and the error went away from the page in the above link (but only a while after I posted)
  • Changed back to the icons and the error is now there again.

So looks like the icons cause the error, so I wonder if there is a workaround for that????
 
Yeah you need to have some textual content there otherwise it will fail.

If you set the title of the navigation entry to:
HTML:
<i class="fa fa-home" aria-hidden="true"></i> <i class="fa fa-info" aria-hidden="true"></i> <span class="u-srOnly">Home</span>
That should sort it.

Note that an element with a class of u-srOnly will be rendered invisible, but Google will acknowledge that the name of your breadcrumb is Home.
 
Back
Top Bottom