Title: Cancel Comment button doesn&#039;t work
Last modified: August 19, 2016

---

# Cancel Comment button doesn't work

 *  Resolved [jonnyplow](https://wordpress.org/support/users/jonnyplow/)
 * (@jonnyplow)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/cancel-comment-button-doesnt-work/)
 * NOTE: my wp version is actually 3.0.2
 * For a theme I’m building:
 * I have threaded comments enabled. When I test it live I go to comments section.
   Add some test comments. Then test the comment REPLY button, which reloads the
   page with the comment box as the focus and the CANCEL REPLY button showing. But
   when I try to click the cancel reply button, it doesn’t work, and it will only
   scroll the page back to the comment form.
 * So, first, should the page even be reloading when I click reply?
    Second, why
   would the cancel button not work?
 * My code:
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com)]_

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

 *  Thread Starter [jonnyplow](https://wordpress.org/support/users/jonnyplow/)
 * (@jonnyplow)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/cancel-comment-button-doesnt-work/#post-1802177)
 * [http://wordpress.pastebin.com/xkrHDAYX](http://wordpress.pastebin.com/xkrHDAYX)
 *  Thread Starter [jonnyplow](https://wordpress.org/support/users/jonnyplow/)
 * (@jonnyplow)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/cancel-comment-button-doesnt-work/#post-1802387)
 * Anyone have this happen??
 *  Thread Starter [jonnyplow](https://wordpress.org/support/users/jonnyplow/)
 * (@jonnyplow)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/cancel-comment-button-doesnt-work/#post-1802403)
 * anyone????
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/cancel-comment-button-doesnt-work/#post-1802404)
 * > So, first, should the page even be reloading when I click reply?
 * No
 * > Second, why would the cancel button not work?
 * Are you enqueing the comment javascript correctly in header.php – just before
   <?php wp_head(); ?>`?
 * `<?php if(is_singular()) wp_enqueue_script( 'comment-reply' );?>`
 * Does your theme use any javascript? If so,have you tried removing it?
 *  Thread Starter [jonnyplow](https://wordpress.org/support/users/jonnyplow/)
 * (@jonnyplow)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/cancel-comment-button-doesnt-work/#post-1802405)
 * Genius Esmi! I used
 *     ```
       <?php
       if ( is_singular() && get_option( 'thread_comments' ) )
       wp_enqueue_script( 'comment-reply' );
       wp_head();
       ?>
       ```
   
 * THANKS A TON!
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/cancel-comment-button-doesnt-work/#post-1802406)
 * No problem. Just sorry it took so long for you to get a response.

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

The topic ‘Cancel Comment button doesn't work’ is closed to new replies.

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/cancel-comment-button-doesnt-work/#post-1802406)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
