Future upgrades of Gravity Forms, future upgrades of your theme, or both?
By putting the snippet in your theme, you won't have to worry about losing it with future upgrades of Gravity Forms. To keep your customizations safe from future upgrades of your theme, you'll either need to look at their documentation for the "safe" place to put custom code (most themes that provide updates have a place for custom code) or create your own.
If you're not worried about future upgrades of your theme, then I'd add the code wherever your theme initializes it's other javascript functions. This is typically titled something like init.js.
Hope this helps. :)
Posted 14 years ago on Thursday October 28, 2010 |
Permalink