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.
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?
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.