Missing Publisher Logo for AMP Pages

  • I have an error on rich results test on my site when updated to the latest version of Rank Math plugin. Problem is the Logo missing from publisher schema for AMP Article. Please help. I am now on version 1.0.47.1 where this problem is not reported on the same google test.

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

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    We were able to reproduce the error and have logged it. Please allow us some time to test and release a fix. It should be added to the plugin in the upcoming update.

    For now, to fix the issue on your site, plase add follwoing filter code in your theme’s functions.php file:

    
    add_action( 'rank_math/json_ld', function( $schemas, $jsonld ) {
    	if ( ! is_singular() || ! isset( $schemas['publisher'] ) || empty( $schemas['publisher']['image'] ) ) {
    		return $schemas;
    	}
    
    	$schemas['publisher']['logo'] = $schemas['publisher']['image'];
    	return $schemas;
    
    }, 999, 2 );
    

    I hope that helps.

    Hello,

    Hope you are doing well.

    We fixed the issue in the most recent update. Can you please update to the latest version and let us know if you are still experiencing the issue?

    You can open a new support ticket.

    Please do clear the cache of your website, server-side, & browser is there’s anything unusual.

    We appreciate your patience and understanding in this matter.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The ticket ‘Missing Publisher Logo for AMP Pages’ is closed to new replies.