• Resolved dealyouz

    (@dealyouz)


    Hello,
    I use Yoast plugin in my website and google search console give me this error :
    Champ “mainEntity” manquant

    You can check with this link
    [ redundant link removed ]
    in he Schema settings, I selection QA page type for question/answers pages.

    If I disable Yoast plugin everything is ok.
    could please help me?

    thank you very nuch

    • This topic was modified 2 years, 3 months ago by dealyouz.
    • This topic was modified 2 years, 3 months ago by dealyouz.
    • This topic was modified 2 years, 2 months ago by Jan Dembowski.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @dealyouz,

    Thank you for using Yoast SEO.

    If you set the page to be a QA page, there needs to be a Yoast FAQ block on the page to fill the schema. Not having this will result in an incomplete/invalid Schema graph. Please refer to: https://yoast.com/how-to-build-an-faq-page/

    Just adding the FAQ block with your questions and answers would make the plugin output the correct information too.

    This thread was marked resolved due to a lack of activity, but you’re always welcome to re-open the topic. Please read this post before opening a new request.

    i think this in my case i can’t add FAQ block because my posts are discussions/forum is there any other way i can add “mainEntity” manually?

    Example:

    <html>
      <head>
        <title>How many ounces are there in a pound?</title>
        <script type="application/ld+json">
        {
          "@context": "https://schema.org",
          "@type": "QAPage",
          "mainEntity": {
            "@type": "Question",
            "name": "How many ounces are there in a pound?",
            "text": "I have taken up a new interest in baking and keep running across directions in ounces and pounds. I have to translate between them and was wondering how many ounces are in a pound?",
            "answerCount": 3,
            "upvoteCount": 26,
            "acceptedAnswer": {
              "@type": "Answer",
              "text": "1 pound (lb) is equal to 16 ounces (oz).",
              "upvoteCount": 1337,
              "url": "https://example.com/question1#acceptedAnswer"
              },
            "suggestedAnswer": [
              {
                "@type": "Answer",
                "text": "Are you looking for ounces or fluid ounces? If you are looking for fluid ounces there are 15.34 fluid ounces in a pound of water.",
                "upvoteCount": 42,
                "url": "https://example.com/question1#suggestedAnswer1"
              }, {
                "@type": "Answer",
                "text": " I can't remember exactly, but I think 18 ounces in a lb. You might want to double check that.",
                "upvoteCount": 0,
                "url": "https://example.com/question1#suggestedAnswer2"
              }
            ]
          }
        }
        </script>
      </head>
      <body>
      </body>
    </html>

    https://developers.google.com/search/docs/appearance/structured-data/qapage

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘QA page : MainEntity missing when yoast plugin is activated’ is closed to new replies.