• Resolved mattrogowski

    (@mattrogowski)


    I’m running the latest version of CF7 (4.9.2) with the latest version of CF7CF (1.3.4), however the javascript file isn’t being inserted into the page. I’ve debugged as far as going into the wpcf7cf_enqueue_scripts function and I can dump something out before the wp_enqueue_script call, however the script never actually gets inserted.

    I thought it may have been the jQuery dependency, however I changed the code to remove the dependency, and tried declaring jQuery as a dependency manually, neither of which had any effect.

    Without going down the rabbit hole debugging how the enqueue functionality works, is there anything else to try? We’re using a custom theme (built by a 3rd party freelancer), and I’m not sure if the enqueue system could be affected by a custom theme or if it’d work regardless.

    Thanks.

    • This topic was modified 8 years, 4 months ago by mattrogowski.
Viewing 1 replies (of 1 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    are you using some kind of caching plugin?

    Technically the scripts enqueued by a plugin can be dequeued by a theme or another plugin. I don’t see any valid reason for a theme to go and dequeue non-library scripts, so that would be weird. Most likely it’s a caching problem. A link to your website might help me figure out the problem too

Viewing 1 replies (of 1 total)

The topic ‘wpcf7cf-scripts not being inserted’ is closed to new replies.