• Resolved fivehead

    (@fivehead)


    Can you please explain how to disable FAQ schema?

    I have 300+ pages with Yoast FAQ schema blocks, so I am hoping to do this programatically (or with the flip of a toggle) instead of manually changing every page.

    Note: I see in your API documentation how to disable schema entirely, but I need to disable FAQ schema only.

    Thank You!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Michael Tiña

    (@mikes41720)

    Hi,

    When you add a FAQ structured data block, it adds the following pieces:

    • Construct an itemList which contains each question piece.
    • Add an additional @type value of FAQPage to the WebPage.
    • Add a mainEntityOfPage property to the WebPage (or the Article, if one is present), referencing the ID of the itemList node.
    • You can learn more about it here — https://developer.yoast.com/features/schema/plugins/yoast-seo

      There is documentation in the schema API to add and remove graph pieces as you see fit — https://developer.yoast.com/features/schema/api

      Another alternative would be to remove the FAQ block entirely so the schema output doesn’t output. Unfortunately, there isn’t a toggle of some sort in the Yoast SEO plugin to disable just the FAQ schema.

    Thread Starter fivehead

    (@fivehead)

    Thanks @mikes41720. Per your recommendation on the link you sent, I added:

    add_filter( 'wpseo_schema_needs_faq', '__return_false' );

    …to my child theme functions.php, but FAQ is still showing in Google’s structured data testing tool and the newer rich results test.

    What am I missing?

    • This reply was modified 5 years, 9 months ago by fivehead.
    Plugin Support Michael Tiña

    (@mikes41720)

    Hi,

    You might need to review on the schema added when there is a FAQ block added here in order to make sure this is the graph piece that you will remove. Unfortunately, we’re unable to provide specific advice or code for this. You might want to refer to your developer for more assistance.

    Hi @fivehead ,

    We’re closing this thread as there seem no further questions from you. Please feel free to open a new thread should you have further concerns.

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

The topic ‘Disable FAQ Schema Only’ is closed to new replies.