How to disable ProfilePage markup in author archive

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

    Thank you for contacting Rank Math today.

    You can head over to Rank math > Authors and disable author archives

    Looking forward to helping you. Thank you.

    ​​​​​​

    Yury
    Rank Math free

    Hi! I need to remove the markup (ProfilePage)! Author archives – I need!

    Yury
    Rank Math free

    https://rankmath.com/kb/filters-hooks-api-developer/ – I did not find a filter to disable this type of markup.

    Hello,

    Thank you for contacting Rank Math today.

    I have modified the following code, add it to your functions.php, clear your cache then test your profile link.

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

    Let us know how it goes.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Yury
    Rank Math free

    Hi! Such a code will not work. It removes all markup on archives. And I only need markup “ProfilePage” (https://clip2net.com/s/47FtZsZ – highlighted in red).
    There must be a filter for this!

    This markup is not true with you! There should be a markup of “Person” on the pages of the archives of the author.

    Hello,

    Please use following code to remove the PorfilePage schema:

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

    I hope that helps.

    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 ‘How to disable ProfilePage markup in author archive’ is closed to new replies.