IQComputing
Forum Replies Created
-
Forum: Plugins
In reply to: [ReCaptcha v2 for Contact Form 7] reCaptcha is displayed on every pageHello @ggr089
You can adjust this with some PHP Development knowledge. You can use the
wp_enqueue_scriptshook to dequeue our plugin scripts on all pages and enqueue them only on specific pages.We do this by default since Contact Form 7 uses Shortcodes to display the form. Knowing when and where a Shortcode is used can be troublesome/difficult since Shortcodes can be called in various different ways. In the future, we may add more options to adjust this.
The scripts are fairly lightweight and shouldn’t cause any performance issues on their own.
– – – – – – – –
Sie können dies mit etwas PHP-Entwicklungswissen anpassen. Sie können den Hook
wp_enqueue_scriptsverwenden, um unsere Plugin-Skripte auf allen Seiten aus der Warteschlange zu entfernen und sie nur auf bestimmten Seiten einzureihen.Wir tun dies standardmäßig, da Contact Form 7 Shortcodes verwendet, um das Formular anzuzeigen. Zu wissen, wann und wo ein Shortcode verwendet wird, kann mühsam/schwierig sein, da Shortcodes auf verschiedene Arten aufgerufen werden können. In Zukunft werden wir möglicherweise weitere Optionen hinzufügen, um dies anzupassen.
Die Skripte sind ziemlich leichtgewichtig und sollten selbst keine Leistungsprobleme verursachen.
Forum: Plugins
In reply to: [ReCaptcha v2 for Contact Form 7] recaptchav2 contact form issueHello @ppokopiou
Thank you for providing your website! Looking at the website, there are a few JavaScript console errors that may prevent the reCaptcha from appearing as expected. We recommend fixing these issues first.
You may also be running WP Rocket which is lazy loading the scripts. The Google ReCaptcha API script does need to load before our ReCaptcha script so that it instantiates properly. We recommend excluding the API Script from being deferred in the WP Rocket settings:
https://docs.wp-rocket.me/article/976-exclude-files-from-defer-js
The script that needs to be deferred is:
google.com/recaptcha/api.jsYou may also want to reach out to WP Rocket support to get their suggestions. If you have any further questions or run into any issues, please reply back to this thread, and we can assist further. Have a wonderful rest of your week!
Forum: Plugins
In reply to: [ReCaptcha v2 for Contact Form 7] “I am not a robot” not showingHello @nadiavonm92
It may have been in the past but looking at the website source code on your current homepage shows that the Get in Touch Form is not a Contact Form 7 form but is an Elementor Form. This Elementor Form would need to be switched out to a Contact Form 7 form for ReCaptcha from this plugin to appear.
Forum: Plugins
In reply to: [ReCaptcha v2 for Contact Form 7] “I am not a robot” not showingHello,
Looking at the website, we were unable to find the Contact Form 7 form with the Recaptcha on it. The only form we found was the “Get In Touch With Us,” which appears to be an Elementor form. This reCaptcha plugin only works with Contact Form 7 and its related forms. Could you edit your topic and update the link field with the specific page that has the form, please?
Forum: Plugins
In reply to: [ReCaptcha v2 for Contact Form 7] Will work on PHP 8?Hello @engeniusweb This plugin should be 100% compatible with PHP 8. If you run into any issues or have any questions you may reply back to this thread and we will help further.
Forum: Plugins
In reply to: [ReCaptcha v2 for Contact Form 7] Is [recaptcha size:invisible] suported?Hello @parisek
Unfortunately, Invisible ReCaptcha is not supported in this plugin. The code you’ve found is pulled directly from Contact Form 7’s original implementation. We can add this as a feature request in a future version. As an alternative, we recommend first Contact Form 7’s built-in reCaptcha v3 – which is inherently invisible and does get stronger over time. There is also CF7 Invisible reCaptcha by Vsourz Digital.
Forum: Plugins
In reply to: [ReCaptcha v2 for Contact Form 7] Strange white box under reCAPTCHAHello @charlesoneka
It looks like the theme is overriding some of the plugin-specific CSS. There’s a
g-recaptcha-responsetextarea that’s usually hidden for screen readers and ADA purposes. Try adding the following CSS under Admin > Appearance > Customizer > Additional CSS panel:#g-recaptcha-response { min-height: 0 !important; padding: 0 !important; border: 0; }Hopefully, that solution works for you. If you have any questions or run into any issues, please reply to this thread, and we can assist further. Have a wonderful weekend!
Forum: Plugins
In reply to: [ReCaptcha v2 for Contact Form 7] not showing on site@it-hertz This plugin uses the same ReCaptcha API fields that Contact Form 7 does. From the Contact Form 7 Documentation:
- Go to the admin menu Contact > Integration.
- Find reCAPTCHA panel and click Configure Keys.
- Copy the site key and secret key into the fields and save them.
Hopefully, once you set your API keys the ReCaptcha should start showing up as expected. If you have any questions, reply to this thread, and we can assist further. Have a wonderful weekend!
Hello,
If a Contact Form is added dynamically, the Google ReCaptcha must also be called dynamically. What we recommend is taking a look at the
wpcf7-recaptcha-controls.jsfile in the plugin’s assets:wpcf7-recaptcha/assets/js/wpcf7-recaptcha-controls.js
In your AJAX callback, once the form has been loaded, you could compartmentalize the same code in yourr JS file which should initialize the reCaptcha. Let us know if you have any questions or run into any issues. Have a wonderful rest of your week!
Forum: Plugins
In reply to: [ReCaptcha v2 for Contact Form 7] Checkbox no longer displayedHello,
For some reason or another the plugins JS file is not being enqueued. We expect to see a reference to
wpcf7-recaptcha-controls.jsin the page source but we’re not seeing it. If this is a custom theme, please ensure that the header calledwp_head()and the footer calledwp_footer(). If you find that the theme does call these functions properly, we would recommend installing WordPress Health Check & Troubleshooting tool to safely disable plugins and revert to a default theme. If there is a theme or plugin conflict, we can try to work with the authors to fix the issue.A running theory is that maybe a secondary plugin is adding in Google ReCaptcha and overriding this plugin’s version, but please let us know what you find. Have a wonderful rest of your week!
Hello @osakawebbie
If you could open a new thread – that sounds like a different issue. Usually if the reCaptcha checkbox does not appear at all there is a configuration issue and we would recommend reading through and verifying the Installation Steps. Linking your website in the new thread will help us better debug this issue.
Thank you again for reporting this issue. It took a bit of time to track down exactly what Contact Form 7 changed, but we have just pushed an update to fix this issue. Please update your plugin version to 1.4.3, and you should find this issue resolved. Should you have any other questions, you may reply back to this thread, and we can assist further. Have a wonderful weekend!
Hello,
Thank you for reporting this issue. It looks like a Contact Form 7 update changed the way validation works. We are investigating this issue and will push an update as soon as we know more.
Forum: Plugins
In reply to: [ReCaptcha v2 for Contact Form 7] Recaptchs is not visible in contact formHello @bitsisc
We’re glad you were able to fix your issue. By default, the language should use the site selected language but we also have a filter hook if this helps:
'hl' => esc_attr( apply_filters( 'wpcf7_recaptcha_locale', get_locale() ) )Which you may be able to use like this:
/** * Change reCaptcha Locale as needed * * @param String $locale - The value of get_locale() * * @return String $locale */ function wpf15832519_recaptcha_locale( $locale ) { if( defined( 'ICL_LANGUAGE_CODE' ) ) { $locale = ICL_LANGUAGE_CODE; } return $locale; } add_filter( 'wpcf7_recaptcha_locale', 'wpf15832519_recaptcha_locale' );Forum: Plugins
In reply to: [ReCaptcha v2 for Contact Form 7] Recaptcha logo not visibleHello,
It looks like the plugin is trying to load version 3.0. Please ensure that under “Contact > reCaptcha Version” this is set to use reCaptcha Version 2. For more information see the screenshot linked below:
https://ps.w.org/wpcf7-recaptcha/assets/screenshot-1.jpg?rev=2153682
If you set this and it is still not showing up – try to remove the “defer” from the script by slug “google-recaptcha” or by URL “https://www.google.com/recaptcha/api.js”.
Hopefully using the above information, you’re able to solve your issue. If you have any questions, please reply to this thread, and we can assist you further. Have a wonderful rest of your week!