Title: Help with modifying comment-reply.js
Last modified: August 21, 2016

---

# Help with modifying comment-reply.js

 *  Resolved [zed28](https://wordpress.org/support/users/zed28/)
 * (@zed28)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/help-with-modifying-comment-replyjs/)
 * 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 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [zed28](https://wordpress.org/support/users/zed28/)
 * (@zed28)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/help-with-modifying-comment-replyjs/#post-4446166)
 * I found out that ‘title_reply_to’ is ignored when “comment-reply.js” is loaded.
 * I think I need to write some code within “comment-reply.js” to rewrite “#reply-
   title” with new text, but I do not how.
 *  Thread Starter [zed28](https://wordpress.org/support/users/zed28/)
 * (@zed28)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/help-with-modifying-comment-replyjs/#post-4446232)
 * Solved

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Help with modifying comment-reply.js’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [zed28](https://wordpress.org/support/users/zed28/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/help-with-modifying-comment-replyjs/#post-4446232)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
