Archived topic
Yoast schema clash
6 replies · Started by Stevie on April 29, 2020
Hi guys
I believe GP natively outputs schema..
Can this clash with Yoast?
I see you have a filter for turning it off. How and where do I add this?
cheers
Stevie
Hi there,
We would recommend turning off GP's schema if you are using Yoast.
The code can be added using one of these methods:
https://docs.generatepress.com/article/adding-php/
Thanks Leo. Hope you don't mind, but I have a few questions.
1.Do I just create a code snippet,( using code snippets plugin) give it a name and add the following:
add_filter( 'generate_schema_type', '__return_false' );
2. If so, can you explain what kind of conflict occurs after I enable GP on my site?
3.I'll be putting site in maintenance mode for couple of hours while I add GP, GP premium and make some
changes to css and layout etc. Do I need to deactivate Yoast at all during this installing, activation and designing of my site framework?
kind regards
Stevie
1. Yes
2. I'm not a schema expert so not sure unfortunately. As far as I understand, you only want 1 schema activated. So if you are using Yoast's schema, then disabling GP's schema is a good idea.
3. Nope I don't think so.
thanks Leo !
So I'm fairly new to this too. Are you guys saying something like this plugin here:
https://wordpress.org/plugins/code-snippets/
And then using the plugin add the snippet:
add_filter( ‘generate_schema_type’, ‘__return_false’ );
And then that should remove the GP Schema?
Yoast premium comes with the Schema built-in as well?
That is correct.