Title: functions.php- limit plugins calling scripts in header
Last modified: August 21, 2016

---

# functions.php- limit plugins calling scripts in header

 *  [jami1955](https://wordpress.org/support/users/jami1955/)
 * (@jami1955)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/functionsphp-limit-plugins-calling-scripts-in-header/)
 * I’m using Visual Form Builder on this page: [http://tecostaff.com/dev/contact/](http://tecostaff.com/dev/contact/)
 * On activating the plugin it puts the JS and CSS script calls in all the headers
   of all the pages (I have 4 distinct headers) – which is what it’s supposed to
   do. What a WASTE. It only needs to be in one header, the contact page header.
 * Is there a way of putting some code in the functions.php page either in my theme
   or the plugin’s that will specify to ONLY put the plugin code in the specified
   header? thanks
 * This by the way is not specific to the VFB plugin – this question is relevant
   for ALL plugins. Usually I am only using the plugin on one or two pages and it
   is not needed for the plugin scripts to be called on each and every page. This
   creates un needed bandwidth, and goes against optimization sense.
    thanks

The topic ‘functions.php- limit plugins calling scripts in header’ is closed to 
new replies.

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [plugin-code](https://wordpress.org/support/topic-tag/plugin-code/)

 * 0 replies
 * 1 participant
 * Last reply from: [jami1955](https://wordpress.org/support/users/jami1955/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/functionsphp-limit-plugins-calling-scripts-in-header/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
