HTML Validation Error Using Recaptcha
-
I’m having trouble validating the HTML of my site in W3C Validator, using the Recaptcha option of Plugin Contact Form 7.
The problem is caused by the “frameborder” and “scrolling” attributes present in the “iframe” tag that Recaptcha displays.
I was able to resolve by changing the code snippet present in line 352 of the file recaptcha.php present in the folder “contact-form-7 > modules”.<iframe src="<?php echo esc_url( $url ); ?>" frameborder="0" scrolling="no" style="width: 302px; height:422px; border-style: none;"></iframe>I changed by this code:
<iframe src="<?php echo esc_url( $url ); ?>" style="border:0px; overflow:hidden; width: 302px; height:422px; border-style: none;"></iframe>It’s not that important, but it would be cool if you could change it, because otherwise it will be fixed, when the plugin is updated, I will lose the change I made to the plugin code.
The topic ‘HTML Validation Error Using Recaptcha’ is closed to new replies.