Quantcast
Viewing all articles
Browse latest Browse all 134440

zed28 on "Help with modifying comment-reply.js"

I have redefined my reply and reply_to titles in functions.php:
...

$defaults['title_reply'] = 'Your question:';
	$defaults['title_reply_to'] = 'Answer for: %s';

...

It works ok unless I use default "comment-reply.js". I need this JS to move respond form below the replied comment, but I have two problems with it.

First problem is that "comment-reply.js" only moves respond form, but does not change form title from "title_reply" to "title_reply_to".
When I click "Reply" button in comment, it always sets reply title to "Your question", but I need reply title "Ansver for: %s".

Second (and minor) problem is: when "comment-reply.js" moves reply form, it set "comment-form-comment" (text area) as focused/active with cursor placed in this field, but I do not want it. How can I remove this focusing?

Thank you for any help

Alex


Viewing all articles
Browse latest Browse all 134440

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>