I have enabled comment replies in my blog. Lets say there is a comment Nick has written… when I’m gonna reply, I want to display a message “Replying to Nick” in the reply’s form header. Anyone knows how? Thanks!
Leave a Reply
You must be logged in to post a comment.
The WordPress function comment_form_title works only for users with Javascript disabled or pages without the comment-reply.js JavaScript loaded.
WordPress may not fix this limitation at all
Two tickets have been opened before and closed without fix.
http://core.trac.wordpress.org/ticket/10084
http://core.trac.wordpress.org/ticket/8639
However I managed to get it work for the default twentyeleven theme by using some dirty fixes.
Here is the code you may use as plugin.
Remember it may not work with all themes.
Update:
To make it work with the custom theme @Arg Geo uses.
Replace the function cftf_javascript() as below
As of jQuery 1.7, the
.live()
method is deprecated. Use.on()
to attach event handlers.In the code tamilsweet provided replace:
with: