Title: Load scripts and styles only when there is shortcode?
Last modified: August 20, 2016

---

# Load scripts and styles only when there is shortcode?

 *  [Be Dark](https://wordpress.org/support/users/b_dark/)
 * (@b_dark)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/load-scripts-and-styles-only-when-there-is-shortcode/)
 * I use contact form 7 in a multisite. I want the scripts and the styles to load
   only when there is in a page or a post that have the shortcode and if it is possible,
   I want them to load in the footer not in the header.
 * [http://wordpress.org/extend/plugins/contact-form-7/](http://wordpress.org/extend/plugins/contact-form-7/)

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

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/load-scripts-and-styles-only-when-there-is-shortcode/#post-3238113)
 * [Loading JavaScript and Stylesheet Only When it is Necessary](http://contactform7.com/loading-javascript-and-stylesheet-only-when-it-is-necessary/)
 *  Thread Starter [Be Dark](https://wordpress.org/support/users/b_dark/)
 * (@b_dark)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/load-scripts-and-styles-only-when-there-is-shortcode/#post-3238117)
 * I did step 1. Now, how can I make the script and style appear in specific pages
   and posts in footer of my wp?
 *  Thread Starter [Be Dark](https://wordpress.org/support/users/b_dark/)
 * (@b_dark)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/load-scripts-and-styles-only-when-there-is-shortcode/#post-3238126)
 * how can I make the script and style appear in my footer of my wp only when the
   shortcode is on a page or a post?
 *  Thread Starter [Be Dark](https://wordpress.org/support/users/b_dark/)
 * (@b_dark)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/load-scripts-and-styles-only-when-there-is-shortcode/#post-3238127)
 * i find [this](http://wordpress.stackexchange.com/questions/82933/contact-form-7-load-scripts-and-styles-only-when-there-is-shortcode)
   can you check and see if is easy to add this ability to your plugin us default?

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

The topic ‘Load scripts and styles only when there is shortcode?’ is closed to new
replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [Be Dark](https://wordpress.org/support/users/b_dark/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/load-scripts-and-styles-only-when-there-is-shortcode/#post-3238127)
 * Status: not resolved