reCAPTCHA in a Popup with Contact Form 7
-
Hello,
The captcha displays correctly on a standard form, but when I embed the same form in a popup (loaded dynamically on the page), the reCAPTCHA widget fails to load and the shortcode
[cf7sr-recaptcha]
remains visible as plain text.To provide some context:
I have verified that the Google reCAPTCHA script is properly loaded (via the
wp_footer()
hook) and that the shortcode generates the expected HTML structure (a<div>
with the class.cf7sr-g-recaptcha
). However, the widget is not initialized in the popup because the content is added after the initial page load.Have you encountered this issue before, or do you have a solution to resolve it?
Thanks in advance for your help!
- You must be logged in to reply to this topic.