[Resolved] Remove Schema Markup Created by GeneratePress

Home Forums Support [Resolved] Remove Schema Markup Created by GeneratePress

Home Forums Support Remove Schema Markup Created by GeneratePress

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #2379971
    Ivaylo

    Hi,
    I’m using RankMath so I assume I have to remove GeneratePress markup schema. How to do that?
    GeneratePress schema and CreativeWork are both generating schema so I have to remove both and keep only RankMath.

    Thanks,
    Ivo

    #2379986
    David
    Staff
    Customer Support

    Hi there,

    you can disable the Schema generated by the Theme – see here:

    https://docs.generatepress.com/article/generate_schema_type/

    #2379989
    Ivaylo

    Where to add this code – to functions.php?

    This code will remove both GeneratePress and CreativeWork , right?

    #2380010
    Ivaylo

    I’ve added the code to functions.php and it looks like it is working now – additional schema is no longer seen. If I update GeneratePress this functions.php file will be overwritten so I need to add it again manually, right?

    #2380123
    David
    Staff
    Customer Support

    This doc explains how to add PHP:

    https://docs.generatepress.com/article/adding-php/

    TLDR:
    Are you using a Child Theme?
    If Yes, then it goes in the Child Theme > functions.pgp
    If No, then use a plugin like Code Snippets to add the code.

    Either of those options will continue working after Theme update.
    If you edit the parent theme files then those changes will be lost.

    #2380730
    Ivaylo

    Thanks!

    #2380923
    David
    Staff
    Customer Support

    You’re welcome

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.