• Resolved Abid

    (@hussain76)


    When letting google check the page in https://search.google.com/test/rich-results it shows some warnings, e.g. field author url cannot be found.

    Clicking on the warning it shows that google is getting it’s schema.org data not from the schema JSON included in the HTML header

    <script type="application/ld+json" class="yoast-schema-graph">
    {"@context":"https://schema.org","@graph": ....
    </script>

    but from the HTML inline props in the HTML body, e.g. itemprop="name":

    <span class="author vcard" itemprop="author" itemscope="" itemtype="https://schema.org/Person"><span itemprop="name">
    ...
    </span>

    This is unfortunate as the JSON looks quite complete to me whereas the HTML inline attributes aren’t complete at all.

    How can I achieve that Google uses the JSON provided by Yoast as a source instead of the inline attributes?

    • This topic was modified 9 months, 3 weeks ago by Abid.
    • This topic was modified 9 months, 3 weeks ago by Abid.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @hussain76,

    Thanks for reaching out and I can confirm missing field "url" as a non-critical issue reported in the rich results test tool. The schema.org output you see isn’t coming from the Yoast SEO plugin. Ours usually start with <script type="application/ld+json" class="yoast-schema-graph">.

    It’s likely your theme or another plugin is responsible for that output, but a sure way to know is to perform a conflict check. The fastest way to rule out any conflict is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Twenty-Two.

    Please test this on your development or staging site if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin has a troubleshooting mode, which does not affect normal visitors to your site.

    If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts

    If you feel uncomfortable doing this yourself or if this does not solve your issue, our Yoast SEO Premium plugin comes with one year of (technical) support.

Viewing 1 replies (of 1 total)
  • The topic ‘How to make google use schema JSON instead of HTML inline attributes’ is closed to new replies.