• Resolved masdemas

    (@masdemas)


    Hi, thanks for the developing the nice plugin. Just a question about the published author name in the source code. In local SEO I set everything to organization but the name of the publisher is still displayed.

    {“@type”:”WebPage”,”@id”:”https:\/\/www.chatlab.de\/”},”author”:{“@type”:”Person”,”name”:….

    How I am able to hide the name?

    Greetings and thanks, Matthias.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Rank Math

    (@rankmath)

    Hello @masdemas

    Thank you for contacting the support.

    It is not recommended to remove that data, otherwise, Google’s Search Console will start throwing errors.

    If you still want to do it, please add the following code to your theme’s functions.php file:

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

    Hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Hide Author Name in source code’ is closed to new replies.