When I click on Reply, the reply form appears at the bottom of the page (under the last comment). How can I add the Reply Form inside the comment to which I am going to add the reply?
Leave a Reply
You must be logged in to post a comment.
When I click on Reply, the reply form appears at the bottom of the page (under the last comment). How can I add the Reply Form inside the comment to which I am going to add the reply?
You must be logged in to post a comment.
Dashboard -> Settings -> Discussion
and enable the option to thread commentsEnsure that your Theme enqueues the
comment-reply
script. Look for the following, usually inheader.php
,functions.php
, etc.:Note: this call is usually wrapped in a conditional, such as:
Note 2: You may also see this code inside of a callback, hooked into
wp_enqueue_scripts
,wp_head
, orcomment_form_before
Edit
To enqueue the comment-reply script via
functions.php, don't just put
. That's
_doing_it_wrong()`, because it will fire far too eary. Do this instead:You can create a
<div class="quick-holder"></div>
container in the end of each one comment and copy&drop a comment form on that<div>
via jQuery.Hidden form which will be enabled by clicking on
Reply
link.jQuery