Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Pages contain two or three possible formats of structured data markup

  • Hi we had this issue
    Page contains different structured data formats:

    Pages contain two or three possible formats of structured data markup implementing: JSON-LD, Microdata, RDFa. Use only one format to avoid structured data markup issues.

    We check with rankmath plugin
    This plugin only adds the Schema in the JSON-LD format.

    Please guide us to solve this issue?

  • Hi there,

    Does this issue exist if you disable all plugins except for RankMath?

    This filter allows you to remove the schema from GeneratePress theme as well:
    https://docs.generatepress.com/article/generate_schema_type/

    Let me know if this helps 🙂

  • not clear

    how to put this code?
    add_filter( ‘generate_schema_type’, ‘__return_false’ );

    please guide step by step
    the explanation too simple

  • The filter snippet can be added using one of these methods:
    Adding PHP: https://docs.generatepress.com/article/adding-php/

  • hi why we put this code
    our site in trouble
    refer the screenshot

  • Hi there,

    This code, add_filter( 'generate_schema_type', '__return_false' );, is used to disable the schema generated by the theme. Since you’re using SEO plugins for the schema, this will be unnecessary.

  • I confuse right now, before this you said that code to remove schema Microdata, RDFa

    Before this, we check via site checker.pro

    our site contain two or three possible formats of structured data markup implementing: JSON-LD, Microdata, RDFa
    while google prefer only 1 schema only

    how?

  • That’s why we suggest to disable the theme’s schema because it also adding a broad Microdata.

    RDFa is not comes from the theme, you need to find out where it comes from.

  • Rankmath use JSON-LD while yours use Microdata
    we decice to turn off Microdata
    the problem is when we insert your code to disable your scheme

    add_filter( ‘generate_schema_type’, ‘__return_false’ );

    our site is in trouble
    can’t access right now
    how?

  • How did you add the code? Did you follow the instructions here:
    https://docs.generatepress.com/article/adding-php/

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.