Finally I found a way and I am posting it here to address any further requests for such a workaround.
You may add a customized version of comment_form_title
function to your theme’s functions.php
file and call it in your theme’s comments.php
file.
function my_comment_form_title( $linktoparent = true ){
global $comment;
$noreplytext = __( 'Leave a Reply' );
$replytext = __( 'Leave a Reply to %s' );
$replytoid = isset($_GET['replytocom']) ? (int) $_GET['replytocom'] : 0;
if( 0 == $replytoid ){
echo $noreplytext;
}else{
$comment = get_comment( $replytoid );
$excerpt = get_comment_excerpt( $replytoid );
$title = ( $linktoparent ) ? '<a href="#comment-' . get_comment_ID() . '">' . $excerpt . '</a>' : $excerpt;
printf( $replytext, $title );
}
}
Related Posts:
- How to wrap submit button of comment form with div
- customize comment form
- comment_post action hook running on page load instead of after a comment is posted
- How to make comments private for commentor and post author
- Name of comment field differs on different sites
- How can I embed comments plugin to my own website?
- Custom comment field not showing when logged-in
- How to display replies to his comments in user profile of current user
- reply comment below the comment box without reload page
- How to call out the date of user’s first comment?
- How to pass settings to comment_form() if theme only uses comments_template()?
- How to add a class to comment submit button?
- Display Comment Form on dedicated Page for each post
- Commentform – Hightlight invalid fields instead of prompting towards error page
- Make comment textarea input un-required
- Nofollow the date/time hyperlink in comment
- How to rearrange fields in comment_form()
- Removing the “Website” Field from Comments and Replies?
- How to add a class to the comment submit button?
- Comment Walker vs. Comment Callback
- comments reply script not working
- How to display comment form error messages in the same page
- How can I limit the number of comments per registered user per day?
- How do I set up real anonymous posting in bbpress forums? [closed]
- Showing comments only to same custom user role
- Why does comment_reply_link launch the reply form at the wrong spot on the comment section?
- How to allow the reply link to remain on the comment form after I have reached my 10 nested comment limit?
- Deep customization of the comment form?
- How to hide “Trackback” on paginated comments
- Using filter to add additional fields to comment_form()
- Why are default comments deprecated?
- Comments Reply Form
- Does WordPress Allow Blank/Empty Comment Submissions In WordPress?
- Comment form not showing up without comments
- Programmatically block commenting by restricting view of comment form
- How can comments be submitted when I don’t have a comment box on a page?
- how to have 2 comments_template() in one post
- Custom Field Added In Comment Form Not Showing In Edit
- Add a drop down list to comment form?
- How To Remove The “Click here to cancel reply” Link From The WordPress Comment Form
- Passing arguments to wp_list_comments callback function
- Making a Comment on a page without being on that page?
- comments_template not working correcly in custom template files
- How can I show comments in random order?
- adding a text message beside the comment submit button
- How to get last comments but not from admin (or other specific user role/capability)?
- How to save new comment as custom comment type?
- WP comments form (custom) is displaying an extra comment field
- Warning: call_user_func_array() expects parameter 1 to be a valid callback, func
- How to modify comments form using comment_form()?
- How to add consent checkbox in comment section
- How to add enctype to multipart/form-data to comment form?
- Changing position of cancel_comment_reply_link and other elements of comment form
- What does the “$depth” parameter in the Walker_Comment stand for?
- Publish a message on facebook after having posted a comment
- Edit Comment_Field while using T5 Comment Textarea On Top-Plugin
- How to add a title field in comments?
- Share comment to twitter after publishing [closed]
- Disable comments
- How to add attributes to the comment form tag?
- Comment form connection to Gravity Forms
- Add classname comment template from functions.php
- Auto-fill Custom comment fields
- The comment login form is visible to me but not to the user
- Change order of comment fields
- How to call my custom WordPress Comment form without getting the comments?
- Create comments.php form of custom HTML code
- Customizing comments pagination for bootstrap
- How can I test why the comment hook is not working?
- How can I convert anonymous commenters into registered users?
- Add class to comment form div when comment-reply button is clicked
- To whom do emails get sent via the WordPress comments form?
- using comments_template() in custom single-portfolio.php
- how to properly use comments-template.php
- customizing TwentyEleven comments template
- blank page after submitting a comment
- Display complete comment section via post ID
- WordPress comments – how to check if comment still needs to be approved?
- Notification if Comment Author Field is left empty. E.g. change input border colour
- Assign author to comment from post edit page
- How to retain comment text on comment form after login/registration?
- Modify WordPress Comment From For AMP Html
- Check if comment was successfully submited
- Ajax submit comments
- Enable nested comments in Theme
- comments_number not displaying
- Why could my comment_form variable not be working?
- Display avatar with comment form?
- The comment could not be saved. No comment_ID on comments
- How to display comment meta under each comment content
- comment_notes_before not working
- Add comment_meta to wp_comment_reply
- How to create post comment from different domain
- Get comment id of the individual comments in comment list when modifying comment posted using comment text filter
- Custom comment link
- Comments on future posts
- get_comment_meta not behaving as expected
- unsetting required fields in the comment reply form
- Returning error upon comment being flagged as spam
- Clicking Comment “Reply” Button only replies to first comment