Title: [Plugin: Contact Form 7] Moving JavaScript
Last modified: August 19, 2016

---

# [Plugin: Contact Form 7] Moving JavaScript

 *  [David Artiss](https://wordpress.org/support/users/dartiss/)
 * (@dartiss)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-moving-javascript/)
 * I’m trying to streamline my WordPress installation and have noticed that Contact
   Form 7 places 2 JavaScript calls in the footer of each page.
 * Two questions…
    1. Can I move these JavaScript calls to the head of the page? If so, what is the
       best way?
    2. Can these calls be suppressed on non-contact pages?
 * Many thanks,
    David.

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

 *  [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-moving-javascript/#post-1180370)
 * You can get it by using WPCF7_LOAD_JS constant.
 * These posts might be helpful:
    [http://ideasilo.wordpress.com/2009/05/31/contact-form-7-1-10/](http://ideasilo.wordpress.com/2009/05/31/contact-form-7-1-10/)
   [http://ideasilo.wordpress.com/2009/07/05/contact-form-7-1-10-1/](http://ideasilo.wordpress.com/2009/07/05/contact-form-7-1-10-1/)
 *  Thread Starter [David Artiss](https://wordpress.org/support/users/dartiss/)
 * (@dartiss)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-moving-javascript/#post-1180635)
 * Thanks for that – very useful.
 * Is there a version of wpcf7_enqueue_scripts for the CSS?
 * If I wish to switch it off using WPCF7_LOAD_CSS, is there an equivalent of the
   enqueue_scripts so that I can switch it back on for just the relevants pages?
 *  [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-moving-javascript/#post-1180646)
 * You can get it by simply load the CSS file with <link rel=”stylesheet” … > tag
   in your header.php. Current version of Contact Form 7 does not use wp_enqueue_style().
   It might be changed in future version.

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

The topic ‘[Plugin: Contact Form 7] Moving JavaScript’ is closed to new replies.

 * 3 replies
 * 2 participants
 * Last reply from: [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-moving-javascript/#post-1180646)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
