WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Dj_Lord
    Member
    Posted 3 years ago #

    Hello,

    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.

    http://wordpress.org/extend/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 3 years ago #

    http://contactform7.com/2009/11/24/why-isnt-my-ajax-contact-form-working-correctly/

    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
    Member
    Posted 3 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

About this Topic