WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Contact Form 7] JS Scripts Not Loading (4 posts)

  1. kingkong954
    Member
    Posted 4 years ago #

    I cant figure out why, but I cant get the AJAX working (I have both wp_header/footer calls).

    Specifically, the scripts are never loaded.

    I've given up, and in the header just use a hard coded:

    <?php
    if ( WPCF7_LOAD_JS ) { ?>
    	<script type="text/javascript" src="/wp-content/plugins/contact-form-7/scripts.js"></script>
    	<script type='text/javascript' src='/wp-includes/js/jquery/jquery.form.js?ver=2.02'></script>
    <?php } ?>

    This works fine with no conflicts.

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

  2. kingkong954
    Member
    Posted 4 years ago #

    Seems this problem is more universal and not related to this plugin.

    my wp_enqueue_script function just doesnt work, even with no plugins enabled.

  3. danleroux
    Member
    Posted 4 years ago #

    I have the same problem

  4. danleroux
    Member
    Posted 4 years ago #

    ha ha... add this

    define ('WPCF7_LOAD_JS', 'header' );

    to wpconfig.php

Topic Closed

This topic has been closed to new replies.

About this Topic