Last active
March 15, 2016 20:55
-
-
Save pshapiro/13bbb96bf375df1b5840 to your computer and use it in GitHub Desktop.
Fix for publisher logo in AMP WP Plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Edit the class-amp-post-template.php file, either via FTP or within your WordPress Dashboard (go to Plugins > Editor and then select “AMP”) and change this: | |
if ( $site_icon_url ) { | |
$metadata['publisher']['logo'] = array( | |
'@type' => 'ImageObject', | |
'url' => $site_icon_url, | |
'height' => self::SITE_ICON_SIZE, | |
'width' => self::SITE_ICON_SIZE, | |
); | |
} | |
to this: | |
*/ | |
$metadata['publisher']['logo'] = array( | |
'@type' => 'ImageObject', | |
'url' => 'http://domain.com/wp-content/uploads/logo-60.png', | |
'height' => 60, | |
'width' => 170, | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment