• Resolved zed28

    (@zed28)


    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

    (@zed28)

    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

    (@zed28)

    Solved

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help with modifying comment-reply.js’ is closed to new replies.