Forum Replies Created

Viewing 1 replies (of 1 total)
  • Download this file:
    https://github.com/alchapone/ajaxform/blob/master/ajaxform.js

    Add the file to your theme (didn’t test but you get the idea):

    Using the functions.php (Recommended):

    function theme_name_scripts() {
    	wp_enqueue_script( 'ajaxform', get_template_directory_uri() . '/js/ajaxform.js', array(), '1.0.0', true );
    }
    add_action( 'wp_enqueue_scripts', 'theme_name_scripts' );

    Using your footer

    <script type="text/javascript" src="<?php echo bloginfo('template_directory') ?>/js/ajaxform.js">

    On a side note:
    If you’re using requirejs to load your scripts; DO NOT load ContactForm7 scripts.js from require. Instead, simply load ajaxform from require and everything will work fine.

Viewing 1 replies (of 1 total)