Remove schema profile in author page

#780407
  • Resolved Anonymous
    Rank Math free

    Hello,

    I need to remove the scheme that generates rank math on the author’s page. That is, the profile schema.
    How can I do it?
    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    To remove the profile schema from the author’s page using Rank Math, you can follow these steps:

    1. Navigate to the Author Schema Entity page on Rank Math’s knowledge base by clicking here.

    2. Use the provided filter code snippet to remove the worksFor property for your guest authors. You can find the filter code snippet on the page mentioned above.

    3. Replace the $author_id values in the filter code snippet with your guest author’s user ID. You can locate the user ID by visiting WordPress Dashboard → Users and opening the author page. The user ID is visible in the URL of the page.

    If you encounter any issues or have further questions, please feel free to reach out to our support team here. We are always here to assist you.

    Thank you for reaching out!

    Sources:
    How to Use Schema Templates in Rank Math PRO » Rank Math
    How Does the Author Schema Entity Work? » Rank Math
    Remove All Schema from Product Category Pages » Rank Math
    Removing Schema From Your Posts & Pages » Rank Math
    Removing Schema From Your Posts & Pages » Rank Math

    Anonymous
    Rank Math free

    I just want to eliminate the scheme that generates rank math on the author page. Profile schema to be able to put your own. I’m not interested in creating the author/example/ schema with rank math.
    Thank you.

    Anonymous
    Rank Math free

    Remove only domain.com/author/jhon-doe/ for example. Only remove Rank Math Schema in thesse pages author.

    Thanks.

    Hello,

    Please note that Rank Math takes the data that you add to your author profile in WP Dashboard > Users.

    However, you can use the filter given below to remove the default Person Schema that our plugin adds to the author archives:

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

    And here is how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps.

    Anonymous
    Rank Math free

    Hi,

    Yes, this code remove Profile but I need remove all schema, Person too. All Schema added for Ranks Math in auhtor page.

    Thanks.

    Hello,

    The filter code we shared should remove the Person schema. Can you please clear your website cache and check again?

    However, if you wish to remove all the default schemas Rank Math is added for the author pages, please use this filter code instead:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    	if ( is_author() ) {
    		unset($data['WebPage']);
    		unset($data['WebSite']);
    		unset($data['publisher']);
    		unset($data['ImageObject']);
    		unset($data['primaryImage']);
    		unset($data['ProfilePage']);
    	}
    	return $data;
    }, 99, 2 );

    Let us know how that goes. 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 6 replies - 1 through 6 (of 6 total)

The ticket ‘Remove schema profile in author page’ is closed to new replies.