Title: [Plugin: Contact Form 7] Javascript error with &#8220;Footer Javascript&#8221; is fixable
Last modified: August 19, 2016

---

# [Plugin: Contact Form 7] Javascript error with “Footer Javascript” is fixable

 *  Resolved [yoursinwriting](https://wordpress.org/support/users/yoursinwriting/)
 * (@yoursinwriting)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-contact-form-7-javascript-error-with-footer-javascript-is-fixable/)
 * When I installed the “Footer Javascript” plugin, I noticed that I received javascript
   errors because the contact-form-7.js file was loading in the header, while the
   jquery.js file was loading in the footer.
 * One fix is to change the contact-form-7.php file like this:
    1. On line 1153, comment out (or remove) the <script> tag that includes the javascript.
    2. On line 1162, inside the **load_js** function, change the _wp\_enqueue\_script_
       call to look like this:
        `wp_enqueue_script('contact-form-7', WPCF7_PLUGIN_URL.'/
       contact-form-7.js', array('jquery', 'jquery-form'));` which will add the javascript
       to the queue, and require that jquery and jquery-form are loaded as well.
 * Hope this helps somebody, and it would be great if it could be incorporated into
   the next official release.

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

 *  [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-contact-form-7-javascript-error-with-footer-javascript-is-fixable/#post-1035226)
 * Thanks. I consider it for the next release.
 *  [distantfuture](https://wordpress.org/support/users/distantfuture/)
 * (@distantfuture)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-contact-form-7-javascript-error-with-footer-javascript-is-fixable/#post-1035510)
 * Thanks so much for this solution, its one of the final corrections I needed for
   my site to go live : )

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

The topic ‘[Plugin: Contact Form 7] Javascript error with “Footer Javascript” is
fixable’ is closed to new replies.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [wp_enqueue_script](https://wordpress.org/support/topic-tag/wp_enqueue_script/)

 * 2 replies
 * 3 participants
 * Last reply from: [distantfuture](https://wordpress.org/support/users/distantfuture/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-contact-form-7-javascript-error-with-footer-javascript-is-fixable/#post-1035510)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
