WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Contact Form 7] Loader gid just doesn't display anymore (3 posts)

  1. hiulit
    Member
    Posted 3 years ago #

    I'm not sure if anything I did could affect, but I'm sure I didn't touch anything related to contact form 7....

  2. hiulit
    Member
    Posted 3 years ago #

    Maybe this could help...

    if ( wpcf7_script_is() ) {
    		$src = apply_filters( 'wpcf7_ajax_loader', wpcf7_plugin_url( 'images/ajax-loader.gif' ) );
    		$html .= '<img class="ajax-loader" style="visibility: hidden;" alt="' . esc_attr( __( 'Sending ...', 'wpcf7' ) ) . '" src="' . esc_url_raw( $src ) . '" />';
    	}

    This is where the script appends the image

    v

  3. hiulit
    Member
    Posted 3 years ago #

    OK! Got it!

    I just deleted the "if ( wpcf7_script_is() ) { "

    So now it looks like:

    $src = apply_filters( 'wpcf7_ajax_loader', wpcf7_plugin_url( 'images/ajax-loader.gif' ) );
    $html .= '<img class="ajax-loader" style="visibility: hidden;" alt="' . esc_attr( __( 'Sending ...', 'wpcf7' ) ) . '" src="' . esc_url_raw( $src ) . '" height="16px" width="16px" />';

    I also added the "height="16px" width="16px" just in case

Topic Closed

This topic has been closed to new replies.

About this Topic