Archived topic
GP theme schema
4 replies · Started by George on August 24, 2022
A client of mine asked me about this article since he's been using Yoast:
https://blogaid.net/tips-tuesday-google-helpful-content-update-ga4-mini-course-indexnow-shopify-collabs/
Under the "Disable Theme Schema Markup – New Tutorial in DIY SEO" heading.
Can you advise?
Noticed this one here:
https://generatepress.com/forums/topic/schema-question-3/#post-1189765
Should I disable the theme schema?
Hey George,
If you're using another method to provide schema it is a good idea to disable the theme schema.
You can do so with a simple filter for now: add_filter( 'generate_schema_type', '__return_false' );
Hi Tom. Does it make sense to leave some of the theme schema in tact, like the schema added to the menus, header, etc? And if yes, is there a way to exclude some from removal?
I don't think there's much benefit there - it's likely better to just go with the JSON-LD solution. Most browsers are smart enough these days to understand where the header and navigation area are without basic microdata telling them.
Ok, thanks Tom.