Support » Plugin: AMP » Error Messages from Google Search Console

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mohammad Jangda

    (@batmoo)

    Adding a site icon should do the trick: https://codex.wordpress.org/Creating_a_Favicon#WordPress_Version_4.3_or_later

    Also, I’d suggest donating the $50 to https://www.eff.org instead 🙂

    Mo:

    Added the favicon, didn’t fix the code.

    The problem is the logo, trying to find the right place all the plug-in files to add the image/logo to the schema. Can’t seem to find it.

    Regards

    This is the code that’s the problem:

    $metadata = array(
    ‘@context’ => ‘http://schema.org’,
    ‘@type’ => ‘BlogPosting’,
    ‘mainEntityOfPage’ => $this->get( ‘canonical_url’ ),
    ‘publisher’ => array(
    ‘@type’ => ‘Organization’,
    ‘name’ => $this->get( ‘blog_name’ ),
    add image call ——>
    ),
    ‘headline’ => $post_title,
    ‘datePublished’ => date( ‘c’, $post_publish_timestamp ),
    ‘dateModified’ => date( ‘c’, $post_modified_timestamp ),
    ‘author’ => array(
    ‘@type’ => ‘Person’,
    ‘name’ => $post_author->display_name,
    ),
    );

    It is in /includes/class-amp-post-template.php

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error Messages from Google Search Console’ is closed to new replies.