Separate customizable blocks for comment form heading, "Replying to [...]", and "Cancel reply". #40320
Labels
[Block] Post Comments Form
Affects the Comments Form Block
[Type] Enhancement
A suggestion for improvement.
Comment form heading
The comment form heading should be a standard heading block.
"Replying to [...]"
"Replying to A WordPress Commenter" should be a separate block that can be set to be a paragraph or a heading.
If it's a paragraph, a standard heading block can be used for the comment form heading at the user's discretion.
If it's a heading, it serves the purpose of the comment form heading.
The text should be customizable in the block settings sidebar and use a variable for "A WordPress Commenter", i.e., the name of who's being replied to, which links to the comment being replied to, e.g., "Replying to %s" can be changed to "You're replying to %s:", "In reply to %s", etc.
Justin Tadlock recently used this approach for his comment parent link block. See "Link Text" in block settings sidebar:
https://github.com/x3p0-dev/x3p0-comment-parent-link
"Cancel reply"
The "Cancel reply" link should be a separate block. The user thereby has the freedom to visually place it or programmatically style it, e.g., row block or flex to place it after or to the right of "Replying to A WordPress Commenter", or simply leave it placed below "Replying to A WordPress Commenter".
Currently, the placing of the "Cancel reply" link in the "Replying to A WordPress Commenter" heading in a smaller font size seems weird.
The "Cancel reply" link text should be customizable in the block settings sidebar .
Related
#38107
The text was updated successfully, but these errors were encountered: