WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Not letting the commentform jump under the parent comment when replying

[Resolved] Not letting the commentform jump under the parent comment when replying

  • Hi,

    I’m sure this is pretty easy, but can’t find out how to do it.

    What happens now is that when I reply to a comment it moves the commentform under the comment which I am replying too.

    What I want is that the commentform stays in its place, you go to the commentform down the page and you see who you’re replying too.

    Here’s what I found out, the comment_reply_link function has two arguments “add_below” and “respond_id” which tells the javascript where too place the form, but I don’t know what parameters these arguments take and how I can stop the javascript from moving the form.

    Any help would be greatly appreciated.

    Thanks,
    Mitchell

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anyone? 🙂

    esmi

    @esmi

    Forum Moderator

    Try editing your theme’s header.php template file and removing:

    <?php if(is_singular()) wp_enqueue_script( 'comment-reply' );?>

    I didn’t have that in my header, so when I tried this, it worked.
    <?php if(is_singular()) wp_deregister_script('comment-reply'); ?>

    You put me on the right track though, thanks. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Not letting the commentform jump under the parent comment when replying’ is closed to new replies.
Skip to toolbar