Archived topic
Remove Schema hatom and hcard
7 replies · Started by Ivaylo on December 30, 2022
Hi,
I've already used this filter:
add_filter( 'generate_schema_type', '__return_false' );
but hatom and hcard are still there. I'm using the latest updates of GP and GP Premium.
How to remove the above two?
Thanks!
Sent 2 examples
Hi there,
that function removes the schema that the Theme adds to the theme elements, i checked your site and that has worked, but it will not remove schema that is added by other plugins or code.
I have added this one too:
add_filter( 'generate_is_using_hatom', '__return_false' );
and it looks like hatom is gone. Can I apply the same for hcard?
I applied the same and looks like hcard is also gone. Is it OK to leave those in functions.php? It won't break anything else?
It should not effect anything else. So you can leave them in the functions.php
Thanks!
You're welcome
