• Resolved Yan

    (@yankiara)


    Hi,
    It seems that the unified schema graph (last option) is wrongly generated by Slim SEO.

    Google Search Console says that “name” field from root element is missing:
    https://prnt.sc/23gxb1s

    Actually the Slim SEO schema looks very different from Google developpers documentation for breadcrumb schema.

    Google doc:

    {
          "@context": "https://schema.org",
          "@type": "BreadcrumbList",
          "itemListElement": [{
            "@type": "ListItem",
            "position": 1,
            "name": "Books",
            "item": "https://example.com/books"
          },{
            "@type": "ListItem",
            "position": 2,
            "name": "Science Fiction",
            "item": "https://example.com/books/sciencefiction"
          },{
            "@type": "ListItem",
            "position": 3,
            "name": "Award Winners"
          }]
        }

    Slim SEO:

    {
    "@type":"BreadcrumbList",
    "@id":"https://hopital-gimont.fr/services/ehpad#breadcrumbs",
    "itemListElement":[{"@type":"ListItem","position":1,"name":null,"item":"https://hopital-gimont.fr/"},{"@type":"ListItem","position":2,"name":"Services","item":"https://hopital-gimont.fr/services/"}]}

    It looks like field names are not the same, and that Slim SEO breadcrumb starts at root level, but Google schema starts at depth 1 (here ‘books’).

    Could you investigate this, please?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Anh Tran

    (@rilwis)

    Hi @yankiara,

    If you parse the JSON from both Google and Slim SEO (using a tool like https://beautifier.io), you’ll see they have the same structure (each item in the list has @type, position, name and item link. And the position in both cases starts with 1.

    The only problem that causes the bug you see in the screenshot is the first item has name = null in Slim SEO. I’m checking your website but can’t see the output of the schema from Slim SEO, so it’s hard to check this bug. Did you disable this feature? Can you please enable that? And if you see any PHP error log, please let me know.

    Thread Starter Yan

    (@yankiara)

    Hi, and thanks for your answer!
    Indeed I deactivated the feature, but I just reactivated it.

    For me, the issue is not just the null name.

    It looks like every item is shifted toward root level:
    – “position” field is OK
    – “item” field is wrong, as it should start at “https://hopital-gimont.fr/services/” (depth 1, like “https://example.com/books”), but it actually starts at root level “https://hopital-gimont.fr/” (and for item 2, it should be “https://hopital-gimont.fr/services/ehpad/” instead of “https://hopital-gimont.fr/services/”.

    Does it make sense? Am I wrong?

    Plugin Author Anh Tran

    (@rilwis)

    The breadcrumbs always start with your Homepage, so it should starts with https://hopital-gimont.fr. Google’s example is just about showing the structure, not about the data value.

    In your case, it should be Home > Services > Ehpad (not just Services > Ehpad).

    Thread Starter Yan

    (@yankiara)

    Indeed, I found a few threads in the community that confirm that root element is needed.

    So the solution could be setting first ListItem element “name” with site name.
    I tried to test it with Google schema validation tool and it works 🙂

    • This reply was modified 4 years ago by Yan.
    Plugin Author Anh Tran

    (@rilwis)

    Hi @yankiara,

    Just visited this issue again. Do you use the breadcrumbs shortcode anywhere on the website?

    Thread Starter Yan

    (@yankiara)

    Hi, no I don’t.

    Plugin Author Anh Tran

    (@rilwis)

    @yankiara,

    Would you mind to drop me a message? I’d like to clarify something on your site.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Wrong schema for website structure (Search Console alert)=’ is closed to new replies.