Skip to content

Sharing / likes / Related Posts: add them via block hooks #36382

Closed
1 of 1 issue completed
Closed

Description

@simison

Now that likes & sharing functionalities are blocks, the next step would be figuring out how to make the experience "turn-key" and magical.

We've also introduced the first steps to "turn-key" the site into a subscription site and inject subscription blocks to templates automatically (See p1HpG7-rwo-p2):

Screenshot 2024-03-14 at 12 00 25

We shouldn't require customers to add blocks manually to templates in the site editor. Instead, there should be a single switch that does everything for you, with excellent presets, just like with classic themes. Customers' WP and theme should also not affect the turn-key experience; the main toggle needs to be available consistently regardless of their theme (classic or block) or version of WP (with the latest block hook APIs or not).

Screenshot 2024-03-14 at 11 47 46

We need to ensure these features are easily discovered and understood; consider using visuals instead of excessive copy like the above screenshot from production.

With classic themes, customers would need to change the appearance of blocks outside the block editor; with the block editor, we should link them to templates in the right places, where they can change the order of blocks and make changes to them:

Screenshot 2024-03-14 at 11 36 48

WordPress and Jetpack can feel complicated, but we must make it easy and turn-key. Meanwhile, we shouldn't lose the power of allowing customizing everything or having excellent support for all the 12K WP themes.

While each feature should feel great individually, they also all need to be tied together and work well:

  • Turning the site into a subscription site
  • Adding sharing & likes blocks
  • Adding related posts block
  • Enabling likes in comments
  • Enabling subscribing via comments
  • Enabling Jetpack commenting instead of WP core commenting
  • Cookie banner block can also be injected with block hooks API
### Work at a high level for sharing & likes blocks:
- [ ] Allow inserting _sharing_ block with block hook (after posts, in archives, in blog post lists)
- [ ] Allow inserting _like_ block with block hook (after posts, in archives, in blog post lists)
- [ ] Add great defaults to the sharing block instead of leaving it empty in insertion, allowing editing in the block editor.
- [ ] Turn key toggles in Jetpack settings to add sharing and likes blocks to the site
- [ ] Ensure sharing, subscription, and likes blocks look cohesive together; position and spacing within the post together, button sizes, alignment, and customization features within blocks, dark mode for dark themes, etc.
- [ ] Explore migrating sites in block themes from older implementations to the block hooks implementation
- [ ] Explore aligning Likes showing for the blog across the blog, mobile apps, and the web Reader.  
- [ ] Consolidate everything across Jetpack, WP.com and Jetpack Cloud; WP.com shouldn't have their custom settings pages but instead rely on Jetpack UX 100%.
- [ ] https://github.com/Automattic/jetpack/issues/39358

### Other related work:
- [ ] Support dark mode in sharing, likes and comments
- [ ] Allow inserting related posts block via block hooks
- [ ] Consolidate like & commenting settings together
- [ ] Allow inserting cookie banner via block hooks

Internal discussion: p58i-ijO-p2

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    [Feature] Sharing
    on Mar 14, 2024
  2. changed the title [-]Sharing & likes: turn my blog more social -toggle[/-] [+]Sharing & likes: turn-key solution[/+] on Mar 14, 2024
  3. added
    Enhancement
    Admin Page
    on Mar 14, 2024
  4. jeherve commented on Mar 14, 2024

    @jeherve
    Member
  5. jeherve commented on Mar 14, 2024

    @jeherve
    Member

    Allow inserting sharing block with block hook (after posts, in archives, in blog post lists)

    Noting #35542 as the first step for this, currently gated behind an option, pending UI for it.

  6. jeherve commented on Mar 14, 2024

    @jeherve
    Member

    Add great defaults to the sharing block instead of leaving it empty in insertion, allowing editing in the block editor.

    I have mixed feelings about this. I think it makes a lot of sense to have a better onboarding experience for the block. At the same time, I think it would make more sense for us to follow Core's lead on this. We developed the sharing buttons block to offer an experience that was very close to Core's Social Icons block.
    Given that Core is currently working on improvements to the UX for that block (see WordPress/gutenberg#56259 ), I think we should follow the same path with our own block, to offer a consistent experience in the block editor.

  7. simison commented on Mar 14, 2024

    @simison
    MemberAuthor

    I have mixed feelings about this. I think it makes a lot of sense to have a better onboarding experience for the block. At the same time, I think it would make more sense for us to follow Core's lead on this. We developed the sharing buttons block to offer an experience that was very close to Core's Social Icons block.

    It might make sense to have the defaults only in block hooks situations and patterns, and when they are adding just the block manually, leave it as it is today. Needs a bit thinking/exploring for sure.

  8. simison commented on Mar 14, 2024

    @simison
    MemberAuthor

    @jeherve, can your team check what's up with the margins and button sizes with the sharing/likes block? I was using Lettre theme but I've seen it few times in other themes as well.

  9. jeherve commented on Mar 14, 2024

    @jeherve
    Member

    can your team check what's up with the margins and button sizes with the sharing/likes block? I was using Lettre theme but I've seen it few times in other themes as well.

    Done in #36386.

  10. jeherve commented on Mar 14, 2024

    @jeherve
    Member

    cc @keoshi since I'm not sure Oracle monitors the Jetpack Design board anymore.

  11. 5 remaining items

  12. simison commented on Mar 15, 2024

    @simison
    MemberAuthor

    @jeherve happy to help think it through, maybe in a separate GH issue?

  13. jeherve commented on Mar 15, 2024

    @jeherve
    Member

    Sure thing. I created #36410 so we can keep track of that.

  14. keoshi commented on Mar 15, 2024

    @keoshi
    Contributor

    CC'ing @eeeeeevon2023 for awareness. I'll be at a meetup next week and won't be able to look at this until the 27th.

  15. added
    Epic
    [Focus] FSE
    on Sep 12, 2024
  16. changed the title [-]Sharing & likes: turn-key solution[/-] [+]Sharing & likes: add them via block hooks[/+] on Nov 12, 2024
  17. removed their assignment
    on Nov 12, 2024
  18. changed the title [-]Sharing & likes: add them via block hooks[/-] [+]Sharing / likes / Related Posts: add them via block hooks[/+] on Nov 12, 2024
  19. jeherve commented on Apr 17, 2025

    @jeherve
    Member

    Related discussions:

  20. jeherve commented on Oct 21, 2026

    @jeherve
    Member

    Noting that this issue could now be narrowed down to related posts; Likes and sharing buttons are being implemented as part of the redesigned sharing settings screen.

    Internal reference: CM-971

    I'll create a new issue for just the Related Posts block.

  21. jeherve commented on Oct 21, 2026

    @jeherve
    Member

    I'll create a new issue for just the Related Posts block.

    Done in #53945.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Admin PageEnhancementEpic[Feature] Likes[Feature] Related Posts[Feature] Sharing[Focus] FSE[Pri] Normal[Status] Needs Design

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions