WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Not letting the commentform jump under the parent comment when replying (4 posts)

  1. Xevo
    Member
    Posted 3 years ago #

    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

  2. Xevo
    Member
    Posted 3 years ago #

    Anyone? :)

  3. esmi
    Forum Moderator
    Posted 3 years ago #

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

    <?php if(is_singular()) wp_enqueue_script( 'comment-reply' );?>
  4. Xevo
    Member
    Posted 3 years ago #

    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. :)

Topic Closed

This topic has been closed to new replies.

About this Topic