
Simple little plugin that hides reCAPTCHA on pages without Forms for Contact Form 7
By default, Contact Form 7 loads Google reCAPTCHA scripts on every page of your site, even pages without forms. This plugin intelligently detects pages with Contact Form 7 shortcodes and only loads reCAPTCHA where needed.
Benefits:
✅ Improved page load speed
✅ Reduced HTTP requests
✅ Better user experience (no badge on non-form pages)
✅ Automatic detection – no configuration needed
✅ Works with all CF7 versions
How it works:
The plugin checks each page for Contact Form 7 shortcodes. If no form is found, it prevents reCAPTCHA scripts from loading, keeping your site fast and clean.
FAQ
How do I hide the reCAPTCHA badge in WordPress?
If the badge comes from Contact Form 7, activate this plugin. The badge disappears from every page that has no Contact Form 7 form, with no CSS and no settings.
Can I hide the reCAPTCHA badge with CSS instead?
CSS hides the badge but the reCAPTCHA scripts still load on every page. This plugin stops the scripts, so the badge and its loading cost both go.
Does reCAPTCHA slow down my website?
reCAPTCHA v3 adds Google scripts to each page that loads it. On pages without a form they do nothing for you, and this plugin removes them.
Does it remove the badge from pages with a form?
No. reCAPTCHA stays on those pages, because it protects the form.
Does it work with reCAPTCHA v3?
Yes. It works with the reCAPTCHA v3 integration built into Contact Form 7.
Does it work with reCAPTCHA v2 plugins for Contact Form 7?
It controls the reCAPTCHA integration built into Contact Form 7. A separate v2 plugin loads its own scripts.
Contact Form 7 reCAPTCHA v3 is not working or not showing. What should I check?
Check the keys under Contact > Integration, and that the page shows a Contact Form 7 form. If JavaScript adds your form after the page loads, turn reCAPTCHA on for that page with the rfpocf7_load_recaptcha filter.
Does it find forms in footers, widgets, Elementor and popups?
Yes. A form counts wherever it is placed on the page.
Does it support custom post types and archives?
Yes. It works on every page, archive and post type.
Can I force reCAPTCHA on or off for a page?
Yes, with the rfpocf7_load_recaptcha filter. Return true to load it and false to remove it.
Does this work with the latest Contact Form 7?
Yes, tested up to Contact Form 7 6.2.6 and WordPress 7.2.
ChangeLog
2.1.0
- Fixed: forms in a footer, widget, page builder section or popup keep reCAPTCHA, so their submissions go through.
- Improved: tested against WordPress 7.2, PHP 8.6 and Contact Form 7 6.2.6.
2.0.0
- Complete rewrite with modern PHP 8+ practices
- Improved performance with optimized detection
- Better code structure with singleton pattern
- Added CF7 dependency check
- Updated for WordPress 6.8 and Contact Form 7 6.1.3
- Requires PHP 7.4+, WordPress 6.7+, Contact Form 7 5.1+
1.0.2
- Removed CSS to hide grecaptcha-badge
1.0.1
1.0.0