AMP logo good news bad news

#54350
  • Resolved Glinda Creative
    Rank Math business

    So first the good news: enabling AMP support for Rank Math immediately added valuable Schema data!

    The bad news is: The logo provided by Rank Math’s settings does not match Google’s guidelines for an AMP page logo.
    https://developers.google.com/search/docs/data-types/article#logo-guidelines
    AMP guidelines demand a 60x600px image (for pages not stories).

    Everything else about the Schema information output by Rank Math seems in line with AMP guidelines, except for that.

    Recommend providing an AMP-specific logo upload/setting location in the tool.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Alberto
    Rank Math business

    Hello,

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

    Which AMP plugin are you using together with Rank Math? Knowing it will help us to offer a good solution for your issue, since we will be able to try to reproduce your error in our local installations.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Right! That would be helpful, sorry. The official AMP plugin https://wordpress.org/plugins/amp/ is the one I was using.

    The issue is that most often, the logo set in the area SEO Titles and Meta > Local SEO is the best one to use. But since AMP spec demands a specific, small size, the logo set in that spot isn’t appropriate.

    If there IS a place to set an AMP-specific logo, I didn’t spot it after I turned on compatibility.

    Alberto
    Rank Math business

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    I think maybe I can help clarify this directly. (If you’d still prefer to see a live example in action I’ll set it up on a non-client site for you to check out. Sound good?)

    Here is the Local SEO area of the plugin, where a logo is defined.
    local SEO settings where logo is set

    Here are my structured data testing tool results for an AMP page with manual & auto-generated by WordPress AMP plugin schema settings. I set the logo image myself within functions.php because the native AMP plugin settings did not allow me to (correctly) set one within the interface.
    Structured Data Testing Tool without Rank Math
    Here is that code redacted for reference:

    add_filter( 'amp_post_template_metadata', 'xyz_amp_modify_json_metadata', 10, 2 );
    
    function xyz_amp_modify_json_metadata( $metadata, $post ) {
    	$metadata['@type'] = 'NewsArticle';
    
    	$metadata['publisher']['logo'] = array(
    		'@type' => 'ImageObject',
    		'url' => 'WEBSITEURL-amp-logo.png',
    		'height' => 60,
    		'width' => 600,
    	);
    
    	return $metadata;
    }
    
    add_action('wp_head', 'load_head_code');

    As you can see, I put in a dedicated AMP logo image, with the dimensions demanded by Google’s documentation on the subject.

    Then I turned on AMP support within Rank Math
    AMP support activated

    And these are the structured data results afterwards.
    Structured data after Rank Math included

    As you can see, the overall result is better! There’s more detail about the article item itself, and it is formatted better. HOWEVER, for the logo area of the structured data, it is using the logo that is set in the Local SEO area, which is much larger than the 600 wide by 60 high image demanded by Google’s AMP spec. It also doesn’t have dimensions specified for that logo, which isn’t flagged as an error or warning, but is almost certainly preferred.

    So the AMP support for Rank Math is working well, it’s just missing the ability to specify an AMP-specific logo that matches Google’s spec.

    Aw I’m sorry. That was my first time using imgbb and I blew it! I thought the shortlinks worked as img urls and clearly that is not the case!

    Here is the Rank Math Local SEO settings page
    local-seo-settings

    Here is structured data with manual/native AMP settings:
    structured-data-manual-settings

    Here is the back end showing AMP support is activated –
    amp-active

    Here is structured data with Rank Math active –
    structured-data-with-rank-math-amp

    Alberto
    Rank Math business

    Hello,

    With that data I am thinking about something: Rank Math might be overriding the data you set with your PHP filter. I mean, it could be your function is running and then, Rank Math functions run and override your changes. Could you try to change your function priority to run later? Just to see if running it after Rank Math makes it to work.

    Looking forward to help 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 ‘AMP logo good news bad news’ is closed to new replies.