[Resolved] Yoast schema clash

Home Forums Support Yoast schema clash

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1261605
    Stevie

    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

    #1261616
    Leo
    Staff
    Customer Support

    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/

    #1263320
    Stevie

    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

    #1263471
    Leo
    Staff
    Customer Support

    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.

    #1264511
    Stevie

    thanks Leo !

    #1264714
    Anthony

    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?

    #1265010
    David
    Staff
    Customer Support
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.