Skip to content

Commit

Permalink
Update features.php
Browse files Browse the repository at this point in the history
To solve metadata img issues
  • Loading branch information
Lofesa committed Jan 11, 2017
1 parent faf395b commit c127bf5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/features.php
Expand Up @@ -617,6 +617,10 @@ function ampforwp_update_metadata_featured_image( $metadata, $post ) {
);
$metadata['headline'] = $structured_data_archive_title;
}
if ($metadata['image']['width'] < 696) {
$metadata['image']['width'] = 700;
}

This comment has been minimized.

Copy link
@khaledMohammed000

khaledMohammed000 Jan 14, 2017

Contributor

This is a very good Idea, Cheers 👍

return $metadata;
}

Expand Down

1 comment on commit c127bf5

@Lofesa
Copy link
Author

@Lofesa Lofesa commented on c127bf5 Jan 11, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To bypass img metadata error with width
Structure data settings need testing #353

Please sign in to comment.