Viewing 1 replies (of 1 total)
  • Thread Starter TRDK29

    (@trdk29)

    After adding the below to functions.php the problem is gone

    ——————–

    add_filter( ‘amp_post_template_metadata’, ‘amp_modify_json_metadata’, 10, 2 ); // Adding custom metadata
    function amp_modify_json_metadata( $metadata, $post ) {

    if( ‘post’=== $post->post_type ){

    $metadata[‘@type’] = ‘Article’;

    $metadata[‘publisher’][‘name’] = ‘ TORBEN RICK ‘;

    $metadata[‘publisher’][‘logo’] = array(
    ‘@type’ => ‘ImageObject’,
    ‘url’ => get_stylesheet_directory_uri().’/YOUR FOLDER NAME/YOUR LOGO NAME.png’,
    ‘height’ => 60,
    ‘width’ => 250,
    );

    return $metadata;

    }
    }

    ————————-
    See: https://github.com/Automattic/amp-wp/issues/349

Viewing 1 replies (of 1 total)
  • The topic ‘Missing and required – publisher logo name missing’ is closed to new replies.