Title: Getting comment-reply script to be loaded
Last modified: August 22, 2016

---

# Getting comment-reply script to be loaded

 *  Resolved [shaktal](https://wordpress.org/support/users/shaktal/)
 * (@shaktal)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/getting-comment-reply-script-to-be-loaded/)
 * I’m trying to get the `comment-reply` script to load on my site for my blog posts.
 * I have the following in my `header.php` file:
 *     ```
       <?php if( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } ?>
       <?php wp_head(); ?>
       ```
   
 * However, when using `view-source:` there is no trace of the `comment-reply.js`
   file that I would expect.
 * Does anyone have any ideas how I can get this to be loaded?
 * My site url is [http://www.thomas-russell.co.uk](http://www.thomas-russell.co.uk)
   if it helps,
 * Thanks!

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

 *  [jekkilekki](https://wordpress.org/support/users/jekkilekki/)
 * (@jekkilekki)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/getting-comment-reply-script-to-be-loaded/#post-5577227)
 * If I go to your blog, I can see “comment-reply.min.js” is being loaded. [Check this screenshot.](http://support.jekkilekki.com/wp-content/uploads/sites/4/2014/12/thomas-russell-comment-reply-js.png)
 * Is this the JS file you want?
 * There are three conditions that must be met for that script to be enqueued, right?
    1. You’re on a single Post page (is_singular())
    2. Comments are open (comments_open())
    3. You have Threaded Comments enabled (get_option( ‘thread_comments’ ))
 * When you check if your JS is loading, don’t check `view-source:` but rather, 
   right-click, `Inspect Element` and then check out the `Sources` tab for your 
   JS.
 * Does that help or am I missing something?
 *  Thread Starter [shaktal](https://wordpress.org/support/users/shaktal/)
 * (@shaktal)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/getting-comment-reply-script-to-be-loaded/#post-5577278)
 * Oh right, I couldn’t find it in the `view-source:` so I assumed that it wasn’t
   being loaded, I didn’t realize that the `Sources` tab was the better way to check
   for it.
 * Thank you very much for your help!

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

The topic ‘Getting comment-reply script to be loaded’ is closed to new replies.

## Tags

 * [comment reply](https://wordpress.org/support/topic-tag/comment-reply/)
 * [enqueue](https://wordpress.org/support/topic-tag/enqueue/)
 * [loading](https://wordpress.org/support/topic-tag/loading/)
 * [script](https://wordpress.org/support/topic-tag/script/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [shaktal](https://wordpress.org/support/users/shaktal/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/getting-comment-reply-script-to-be-loaded/#post-5577278)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
