Fungafly
Forum Replies Created
-
Forum: Plugins
In reply to: [Popup Message for Contact Form 7] Small PHP errorI’m using version 2.0. I had only just installed it yesterday through WordPress.
Forum: Plugins
In reply to: [Autoptimize] Combined CSS is included before external CSSThank you – it worked!
Forum: Plugins
In reply to: [Bootstrap for Contact Form 7] Compatibility issue with CF7 4.8I’ve had the same problem as well and found a way to solve it without hacking either this plugin or CF7.
It stems from the CF7 update which began using a new REST API for validating the fields. It returns a field wrapper class (
span.wpcf7-form-control-wrap
) that the script uses to find the field and display the resulting validation message. The CF7BS plugin does not use this class in its field group wrappers, and hence the messages are not displayed.To fix this, add this code to your theme’s functions.php:
// BEGIN CF7BS validation messages hotfix function filter_cf7RestResponse( $response, $result ) { // Quits processing if validation passed if ( 'validation_failed' != $result['status'] ) return $response; // Alters wrapper classes in every field foreach ( $response['invalidFields'] as &$field ) { $field['into'] = str_replace( 'span.wpcf7-form-control-wrap', '.form-group', $field['into'] ); } // Done return $response; } add_filter( 'wpcf7_ajax_json_echo', 'filter_cf7RestResponse', 10, 2 ); // END CF7BS validation messages hotfix
It alters the wrapper class in the REST response to the class used by this plugin (
.form-group
).Forum: Plugins
In reply to: [Nav Menu Item Duplicator] Bug with Target Link checkbox^ I can confirm that.
Forum: Plugins
In reply to: [WP Login reCAPTCHA] Translate message for failed validationThere are no settings for this, I have looked into the code and the phrase is hardcoded.
Forum: Plugins
In reply to: [WP Login reCAPTCHA] Translate message for failed validationNo, for just this one phrase it would be overkill.
At any rate, altering the code directly solved the problem for the website where I used it (although I had to disable updates for this plugin). I just wish for the author to take this change into consideration for future versions.
Forum: Plugins
In reply to: [WP Login reCAPTCHA] Translate message for failed validationYes, that takes care of it momentarily, but it is not upgrade-proof.
Forum: Plugins
In reply to: [ACF: Google Map Extended] Oops! Something went wrong.The plugin author should’ve added a filter call where you can insert you API key, as supported by the regular ACF Google Maps field.
Alright, thank you for the fast reply.
Hmm, well thought. I deactivated the plugin (WP-Compress-HTML) and this was indeed the source of the problem.
Thank you for your assistance!