Title: Where do I add that php code?
Last modified: August 30, 2016

---

# Where do I add that php code?

 *  Resolved [amodoke](https://wordpress.org/support/users/amodoke/)
 * (@amodoke)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/where-do-i-add-that-php-code/)
 * Hi,
    The plugin’s awesome for what it does.
 * But I want the main jquery script to load in the header.
 * In your example php code over here:
    [https://joshuadnelson.com/scripts-to-footer-plugin/](https://joshuadnelson.com/scripts-to-footer-plugin/)
 * Where do I add that code? In the plugin’s main php file?
 * Thanks and keep improving… 🙂
 * [https://wordpress.org/plugins/scripts-to-footerphp/](https://wordpress.org/plugins/scripts-to-footerphp/)

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

 *  Plugin Author [Joshua David Nelson](https://wordpress.org/support/users/joshuadnelson/)
 * (@joshuadnelson)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/where-do-i-add-that-php-code/#post-6392360)
 * Actually, that’s code you want to place in a separate plugin file or, if necessary,
   in your theme functions.php file.
 * That said, I’ve got a [beta of the next version](https://github.com/joshuadavidnelson/scripts-to-footer/releases/tag/0.6-beta)
   that is stable for single-site (not yet test on multi-site) installs. It provides
   you with a setting option to place jQuery in the header, as well as better filters
   for adding others. So a checkbox clicked should solve your issue!
 * If you’d like to try that version, I’d appreciate your feedback. I’m swamped 
   at the moment, but I’m hoping to have it released around the same time as WordPress
   4.3 (mid August).
 * Let me know if that helps or if you have any other issues!
 * Cheers,
    Joshua
 *  Plugin Author [Joshua David Nelson](https://wordpress.org/support/users/joshuadnelson/)
 * (@joshuadnelson)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/where-do-i-add-that-php-code/#post-6392451)
 * I’ve released this new version that includes an option to keep jquery in the 
   header (Settings > Scripts to Footer). If you need further help, please open 
   a new issue. I’m closing this one.
 *  Thread Starter [amodoke](https://wordpress.org/support/users/amodoke/)
 * (@amodoke)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/where-do-i-add-that-php-code/#post-6392452)
 * Now ^ that’s called being totally AWESOME!
 * Keep it up man! Kudos!

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

The topic ‘Where do I add that php code?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/scripts-to-footerphp_fcfefd.svg)
 * [Scripts To Footer](https://wordpress.org/plugins/scripts-to-footerphp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/scripts-to-footerphp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/scripts-to-footerphp/)
 * [Active Topics](https://wordpress.org/support/plugin/scripts-to-footerphp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/scripts-to-footerphp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/scripts-to-footerphp/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [amodoke](https://wordpress.org/support/users/amodoke/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/where-do-i-add-that-php-code/#post-6392452)
 * Status: resolved