Contact Form 7
[resolved] Scripts not attached automatically (3 posts)

  1. Dj_Lord
    Posted 5 years ago #


    I noticed that ajax is not working on contact form 7 v2.3.
    Problem - java script files are not attached automatically.

    after I added these lines in my template it started to work:
    <script src="/wp-includes/js/jquery/jquery.form.js?ver=2.02m" type="text/javascript"></script>
    <script src="/wp-content/plugins/contact-form-7/scripts.js?ver=2.3" type="text/javascript"></script>

    What's the problem? how can I fix? because every upgrade would require update template manually.

    Thank you.


  2. Takayuki Miyoshi
    Plugin Author

    Posted 5 years ago #


    JavaScript file is not loaded
    ... This is due to your template, which is missing calling functions for queuing JavaScript. The functions required are wp_head() and wp_footer(), and they are in header.php and footer.php, respectively, in most correct themes.

  3. Dj_Lord
    Posted 5 years ago #

    Thank you, the problem was resolevd. wp_footer() was missing.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic