Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment Parent Link Block #32836

Closed
justintadlock opened this issue Jun 20, 2021 · 1 comment
Closed

Comment Parent Link Block #32836

justintadlock opened this issue Jun 20, 2021 · 1 comment
Labels
[Feature] Themes Questions or issues with incorporating or styling blocks in a theme. New Block Suggestion for a new block

Comments

@justintadlock
Copy link
Contributor

One of the features I've implemented in my themes for several years is a comment parent link. Instead of endless indentation of nested comments, I typically cap this off at level 2 or 3. Then, I add a link to the comment parent like so (see third-level comment):

in-reply-to-003

Because blocks are not meant to be registered in themes (and disallowed entirely in the Theme Directory), the only way to implement this will be for core to include such a block.

Here is a full implementation of the PHP code: http://justintadlock.com/archives/2016/11/16/designing-better-nested-comments#in-reply-to-link

@skorasaurus skorasaurus added [Type] Enhancement A suggestion for improvement. New Block Suggestion for a new block labels Jun 21, 2021
@mtias mtias added [Feature] Themes Questions or issues with incorporating or styling blocks in a theme. and removed [Type] Enhancement A suggestion for improvement. labels Jul 14, 2021
@justintadlock
Copy link
Contributor Author

There doesn't seem to be much traction for this, so I created a block plugin for it instead: https://github.com/x3p0-dev/x3p0-comment-parent-link

Closing this for now, but feel free to reopen if there is any interest in bringing it to core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Themes Questions or issues with incorporating or styling blocks in a theme. New Block Suggestion for a new block
Projects
None yet
Development

No branches or pull requests

3 participants