wp-calypso icon indicating copy to clipboard operation
wp-calypso copied to clipboard

Cannot Set a Featured Image for the Homepage On Themes That Have Page Content in a Template Part

Open katiebethbrown opened this issue 1 year ago • 7 comments

Issue

Many of our FSE themes are setup so that the homepage content lives directly inside the Blog Home template by default:

CleanShot 2024-02-23 at 13 30 43@2x

There isn't a way to set a featured image for a template, so these sites don't have any control over or ability to set an og:image that's used for SEO and when sharing to socials. This is a regression from capabilies we had long before FSE, where the og:image could be set by adding a featured image to the page.

The current fallback appears to be to using the site icon, but in some cases that image isn't large enough for social sites to use for shares.

Discussion

  • P2: pekYwv-2gG-p2
  • P2: p58i-fO1-p2#comment-60174
  • Slack: p1699856216785059/1699423296.581019-slack-C048CUFRGFQ&channel=C048CUFRGFQ&message_ts=1699856216.785059

Details

There is an open issue in the Gutenberg repo that proposes giving templates their own featured images, but it hasn't seen movement since it was opened in Nov 2023.

  • https://github.com/WordPress/gutenberg/issues/55978

Proposed Solution

I'd like to propose that we add some UI in Jetpack's SEO settings (and the WPcom equivalent) where users can set a default/fallback featured image.

There's already a filter in Jetpack for doing this - jetpack_open_graph_image_default filter so we'd just need to expose that via the UI.

A savvy user on an atomic site could manually add that via a code snippet or via functions.php, but it would be wonderful if we could make setting a default image just as easy as entering custom meta text.

katiebethbrown avatar Feb 23 '24 20:02 katiebethbrown

Support References

This comment is automatically generated. Please do not edit it.

  • [ ] p58i-fO1-p2#comment-60174
  • [ ] 8035265-zen

github-actions[bot] avatar Feb 23 '24 20:02 github-actions[bot]

Another request in 8035265-zen

kelasante avatar Apr 12 '24 17:04 kelasante

This could be fixed via:

  • https://github.com/Automattic/wp-calypso/issues/56055

mrfoxtalbot avatar Jun 26 '24 06:06 mrfoxtalbot

As there is a core issue linked to this issue, and we've talked about lowering the priority of these types of issues p1721286471977819/1720683311.692079-slack-C01UW7SB411, setting the priority to Normal.

candy02058912 avatar Jul 18 '24 12:07 candy02058912

Just to clarify, this could be addressed in core but it could also be added via a Jetpack feature.

I have dropped a comment in https://github.com/WordPress/gutenberg/issues/55978#issuecomment-2241491656 see if we can have this in core sooner rather than later. 🤞

mrfoxtalbot avatar Jul 21 '24 06:07 mrfoxtalbot