How to stop it from adding @Person and @CreativeWork schema to pages?

#628110
  • Resolved Dmitriy Shevchenko
    Rank Math free

    I believe I didn’t do any special schema configuration and now I’m getting an alert from Ahrefs Auditor that @CreativeWork schema shouldn’t have reviews. Apparently RankMath automatically grabbing reviews from the page? How do I stop it from doing that? And I believe I shouldn’t even have the @CreativeWork type? (it’s a regular small business website homepage).

    Additionally, How do I get rid of the @Person schema and/or Authors altogether? Again it’s a website where authorship is not really a thing.

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    To remove the Person property from your schema, please make use of this filter code:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    	if (  !isset( $data['publisher'] ) ) {
    		return $data;
    	}
    	
    	unset( $data['publisher'] );
    	return $data;
    }, 99, 2);

    You may refer to this guide on how to add filters to your website: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    As for the CreativeWork issue, the property was actually not generated by our plugin as you can see in my screenshot below:

    Rank Math support

    This means that there might be another plugin or your theme that is adding that microdata. To determine that, please refer to this troubleshooting guide: https://rankmath.com/kb/check-plugin-conflicts/

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘How to stop it from adding @Person and @CreativeWork schema to pages?’ is closed to new replies.