So evidently, I was having jquery conflicts…
I’m loading in a newer version of jquery and had the “load in footer” argument (in the wp_register_script
) set to true. I also forgot that WordPress loads in a “default” type of jquery library but in the head.
I first tried to “deregister” the jquery lib that was coming from wp-incudes/ with wp_deregister_script('jquery')
but then got the “jquery is not defined” message. So then I removed the “load in footer” from my wp_register_script
(because apparently the GF scripts are NOT loaded in the footer like it says it should and actually load in right after the GF DOM elem. ); but I then got a different error which seemed specific to the GF scripts and it read “gf_apply_rules is not defined.”
So what I ended up doing was remove the wp_deregister_script('jquery')
and also remove the “load in footer” argument of my other jquery, which makes it work but makes me uneasy about loading two jquery libraries. I suppose I can remove my newer version and just find a way to update the one coming from wp-includes? Not sure but I think I’m calling it now 🙂
UPDATE: Here was the issue, https://stackoverflow.com/questions/23786388/js-error-on-gravity-forms#answer-37258518
Basically, GravityForms looks for the dependency with the name ‘jQuery’ which my version didn’t have.