Adding noscript tags to the google recaptcha script
-
Hi,
We’re trying to make our wordpress site as accessible as possible by adding noscript tags to all of our Javascript tags. Unfortunately Contact form 7 has a script tag for Google Recaptcha in the file Recaptcha.php which we can’t access from the functions.php file and the script_loader_tag filter. I’d like to add the following line directly after the script tag (Or something similar)
<noscript><p>For full functionality this website requires Javascript to be enabled in your browser.</p></noscript>
However, I’m not keen on modifying this file directly as that can cause issues when the plugin is updated.
Does anyone know of a good way to do this via our theme, or am I able to submit an update to the contact form 7 git repository somehow? Assuming the plugin authors think it’s a sensible addition of course.
Cheers,
Paul
The topic ‘Adding noscript tags to the google recaptcha script’ is closed to new replies.