Show site name on google search

#469265
  • Resolved Purnendu Mukherjee
    Rank Math free

    As we know google introduces to show Site name on search result. But when I checked, my site has already a schema with type – “WebPage” by default. Now how can I add the property “name” with proper site name?

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math support and bringing your concern to our attention.

    By default, Rank Math should generate a name property for the webpage Id in your schema. If it doesn’t on your end, you may refer to this filter code to modify the structured data:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    	if(is_home() && is_front_page()){
    		$data['WebPage']['name'] = 'test';
    	}
    	return $data;
    }, 99, 2 );

    Hope that helps.

    Thank 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 ‘Show site name on google search’ is closed to new replies.