Site logo

Archived topic

GP theme schema

4 replies · Started by George on August 24, 2022

Viewing posts 1–5 of 5

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.

This archived topic is closed to new replies.