#1526 closed enhancement (fixed)
WordCamp Sites: Open Graph -- add default image fallback when there is no image in the post.
Reported by: | jeherve | Owned by: | iandunn |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | WordCamp Site & Plugins | Keywords: | has-patch |
Cc: |
Description
See discussion here: https://wordpress.slack.com/archives/events/p1453392084003279
We already have a default Open Graph Image Meta tag added on the home page, when you haven't set any Site Logo, or Site Icon on your site.
It would be nice to have a similar feature on single posts, when no image can be found in the post (none was inserted, and no featured image was defined).
The attached patch introduces 4 levels of fallback:
- Site Logo -- http://jetpack.me/support/site-logo/
- Site Icon -- https://make.wordpress.org/core/2015/07/27/site-icon/
- Header Image -- https://codex.wordpress.org/Custom_Headers
- Global default OG image -- that's already defined in
jetpack-tweaks.php
, it's a WordPress logo: https://s.w.org/images/backgrounds/wordpress-bg-medblue.png
One concern from our Slack discussion was the following:
Though many header images are PNGs which render transparency kinda weird on shares (especially twitter)
-- @marktimemedia
Attachments (2)
Change History (6)
@
9 years ago
Open Graph: add default image fallback when there is no image in the post, proper diff
#1
@
9 years ago
Please ignore the first patch, default-fallback-image.diff
, I messed up when creating that first diff.
Open Graph: add default image fallback when there is no image in the post.