• Resolved synthview

    (@synthview)


    Hello,
    1st of all thank you for your great plugin!!!
    I’m writing as I have an issue with Additional settings.
    In the past I had a simple line that worked well
    on_sent_ok: "$('#bigIntro').addClass('feedback');"

    Now it does fire no more. I’ve tried to use the Dom events as you write but it has no effect neither.

    var wpcf7Elm = document.querySelector( 'div.wpcf7' );
    wpcf7Elm.addEventListener( 'wpcf7mailsent', function( event ) {
    	$('#bigIntro').addClass('feedback');
    }, false );

    I see no error messages in console, no hint… 🙁

    Would you please have any advice?

    Thanks in advance,
    Jan

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Try switching to the default theme.

    Thread Starter synthview

    (@synthview)

    tried on a local copy of the site with an alert('a'); inside the eventlistener, but nothing happens. Maybe it’s because I’m not on the last WP version?

    Thread Starter synthview

    (@synthview)

    I’ve updated to last WP install and all the plugins but no change 🙁

    Thread Starter synthview

    (@synthview)

    maybe it’s because I’ve set define('WPCF7_LOAD_JS', false);

    I’ve added
    <?php
    if ( function_exists( ‘wpcf7_enqueue_scripts’ ) ) {
    wpcf7_enqueue_scripts();
    }
    wp_head(); ?>

    but I see nothing printed in the html of the page. I expected to see a .js file imported, right?

    Thread Starter synthview

    (@synthview)

    Ok maybe I know! it’s because I’m sending the form in a classic way (no ajax).

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Additional settings / Dom elements’ is closed to new replies.