Site logo

Archived topic

Remove Schema Markup Created by GeneratePress

6 replies · Started by Ivaylo on October 20, 2022

Viewing posts 1–7 of 7

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

Where to add this code - to functions.php?

This code will remove both GeneratePress and CreativeWork , right?

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?

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.

Thanks!

You're welcome

This archived topic is closed to new replies.