-
maximus
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 🙂
-
maximus
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/ -
maximus
hi why we put this code
our site in trouble
refer the screenshot -
Alvind
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. -
maximus
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 onlyhow?
-
Alvind
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.
-
maximus
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 schemeadd_filter( ‘generate_schema_type’, ‘__return_false’ );
our site is in trouble
can’t access right now
how? -
Alvind
How did you add the code? Did you follow the instructions here:
https://docs.generatepress.com/article/adding-php/
- You must be logged in to reply to this topic.