Skip to content

Comments: Make it possible to create a "X replies to post title" heading #40264

Closed

Description

@jameskoster

You can kind of hack it with a Row containing Paragraphs, Post Comments Count, and Post Title blocks:

Screenshot 2022-04-12 at 11 00 25

There are a couple of issues with this approach:

  1. Typography controls across blocks are inconsistent, so it's difficult to create a harmonious appearance
  2. It's not possible to conditionally pluralise reply/replies in order to avoid the awkward "There are 1 comments" / "There are 32 comment".

It would seem relatively simple to address these issues. For example we could update the Post Comments Count block to include an option to also display a label so that the pluralisation logic is built into that block.

Alternatively we might consider a dedicated Comments Heading block.

Activity

  1. added
    [Block] Comments
    on Apr 12, 2022
  2. justintadlock commented on Apr 17, 2022

    @justintadlock
    Contributor

    I put together a rough block plugin for this: https://github.com/x3p0-dev/x3p0-comments-title

    It needs an icon. I'd be happy to test out variations on it.

  3. added
    [Status] In Progress
    on Apr 18, 2022
  4. cbravobernal commented on Apr 18, 2022

    @cbravobernal
    Contributor

    Hi @justintadlock

    I added a PR to add the block in Core. I will take some code from your plugin. Feel free to edit or add comments to the PR!

  5. removed
    [Status] In Progress
    on May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Block] Comments

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions