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.

Page contains different structured data formats

  • Hi,

    I have RankMath free but haven’t configured it yet. I am using the GeneratePress Theme (Premium) and GenerateBlocks.

    My Website Test at Sitechecker came up with the following warning under Code Validation:
    Page contains different structured data formats (17 pages)

    More info from sitechecker:
    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.
    Google recommends to use JSON-LD format.

    Please see the Private Information window for the secret access link to my website and the info about my code that was highlighted in sitechecker.

    How can I solve this issue? Is this something I need to worry about? Could it cause issues later on?

    Thanks!

  • After I submitted this post the private information removed some of my code in the private information window.

    If you want to view the code in the browser the lines to look for are:
    26
    215
    228
    259
    298
    412
    434

    Thanks!

  • Hi there,

    Does the issue exist if you disable all plugins and custom functions except for GP Premium and GenerateBlocks?

    The code for the 6 elements seems to have been added by GP or GB.

    GP does not add any elements to your site by default – the default element should be empty.

    I would recommend setting all of them to draft during testing.

  • Hi,

    The first part in the code was script for JSON-LD, class rank-math schema, which should be ok as I am using RankMath.

    The other 6 parts were items like header, nav, article and footer. They all had itemtype set to https://schema.org.

    So you think that another plugin or custom function set itemtype for these items to https://schema.org, not GP or GB?

    I haven’t yet tested the issue by disabling plugins or custom functions.

  • The other 6 parts were items like header, nav, article and footer.

    Those are pretty standard itemtype that you would see in a default Twenty series theme so I don’t think they will cause any issues.

    You can use this filter to remove schema from GP if you wish:
    https://docs.generatepress.com/article/generate_schema_type/

  • Hi,
    I just came across this post
    https://generatepress.com/forums/topic/adding-schema-to-my-website/#post-2470043
    in which Fernando wrote:

    Reminder: If you’re adding your own schema from any of these plugins, you may have to remove the basic schema GP adds. Here’s how to remove it – https://docs.generatepress.com/article/generate_schema_type/

  • I just posted my reply at the same time your came in.
    So we both found the same link.

    If these standard itemtype won’t cause issues I will not worry about it.

  • Thanks for your help!

  • No problem 🙂

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