Contact Form 7 Plugin - Spinning Ajax Fix

Discussion in 'Infoway WordPress Theme' started by judester, Feb 19, 2013.

  1. judester

    judester New Member

    Joined:
    Feb 6, 2013
    Messages:
    8
    Likes Received:
    0
    I had a problem with my Contact 7 form plugin where when submitting the form, the little Ajax spinner kept spinning and there was no confirmation of send. The form did deliver however. What to do?

    I went into the template and added the following jquery reference to just above the call to the footer. Here is what I posted to the WP thread, which is where I found this suggestion:

    ========
    Down and dirty. In my theme's template, I placed the latest jquery as suggested above just above the footer call. It looks like this:
    <script type='text/javascript' src='http://code.jquery.com/jquery-latest.pack.js'></script> <?php get_footer(); ?>
    Resent the form, spinner stopped spinning and I got my confirmation message.
    ========


     
  2. kylewhenderson

    kylewhenderson New Member

    Joined:
    Apr 3, 2013
    Messages:
    1
    Likes Received:
    0
    Location:
    Houston TX
    It seems to be an issue that stems from the theme's function.php file, line 25:

    Code:
    wp_enqueue_script('inkthemesslider', get_template_directory_uri() . '/js/jquery.min.js', array('jquery')); 

    To fix it, I placed the following in my child theme's functions.php:

    Code:
    function childtheme_custom_jquery(){
    wp_deregister_script('inkthemesslider');
    }
    add_action('wp_enqueue_scripts','childtheme_custom_jquery'); // have disable ink themes slider due otherwise Contact 7 Form with file attachment throws JS error on submit.
    I'm guessing that breaks some slider functionality available in the theme, but my home page slider still works and now I can submit my form without javascript errors. I also suspect this might be specific to Contact Form 7 forms that include a file attachment.
     

Share This Page