Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.58k stars 797 forks source link

Embeds: Add Setting to Instagram Embeds to Hide Caption #38636

Open richardmorrison opened 1 month ago

richardmorrison commented 1 month ago

Impacted plugin

Jetpack

What

Add an option to hide or include the caption on an Instagram post via the Instagram Embed Block.

How

Current: Currently, adding an Instagram Embed looks like this, and includes the entire post:

Screenshot 2024-07-31 at 10 25 52 AM

In some cases, an end user may wish to remove the caption. Adding the feature would bring the embed block in line with the now deprecated Instagram Shortcode which supported the hidecaption=true parameter.

Instagram: Instagram's native embed option includes a checkbox to hide the caption:

Screenshot 2024-07-31 at 10 25 19 AM Screenshot 2024-07-31 at 10 33 25 AM

Ideal outcome: Here is an example of what the native feature shows when captions are enabled or disabled:

Screenshot 2024-07-31 at 10 34 56 AM

Notes: This feature is useful to allow customers to natively use Jetpack's Embed feature instead of manually needing to copy the embed code from Instagram.

james-tyner commented 1 month ago

Hello! This ticket was created based on a request from me to WP VIP on behalf of @sfstandard.

To elaborate on the use case a bit, sometimes we discuss an Instagram post within the content of an article and then want to embed the post so the reader can see it. In those cases, it's often not necessary to include the Instagram caption because we've talked about the post in the context of the article already. And sometimes Instagram captions are quite long, which can interrupt the reading experience for our own readers on our site.