Archived topic
Comment author microdata
1 reply · Started by Marc on June 20, 2019
How can I remove this microdata from my site?
<div class="comment-author vcard">
<cite itemprop="name" class="fn">name</cite>
</div>
I've already added this to my functions.php add_filter( 'generate_schema_type', '__return_false' );
That has successfully removed most of the schema. But there's still this bit of microdata in the comments section I want to remove.
Thanks!
Hi there,
So looks like it's the same request here:
https://generatepress.com/forums/topic/remove-schema-created-by-theme/page/2/#post-739468
So you will need to create a child theme and copy the comments.php and make the modification:
https://github.com/tomusborne/generatepress/blob/7fdcddf18209a84aaa75304ab23f768241e08ed4/inc/structure/comments.php#L39
Let me know if this helps :)