How to create custom CSS theme for Google no CAPTCHA reCAPTCHA
I tried any setup on google without CAPTCHA reCAPTCHA and failed.
The main thing I want to do is change its width, height and color.
Can someone help me.
+3
Engr.MTH
source
to share
2 answers
The noCaptcha client reCaptcha code is an iframe.
You can only choose dark and light themes provided by Google.
UPDATE . You cannot modify the content inside the iframe unless it is the same domain. Some services allow you to pass parameters in the url request, but this is not the case.
+1
Jonathan Barbero
source
to share
I also faced the same issue with new google captcha, but this trick worked fine for me.
<div class="g-recaptcha" data-theme="light" id="google-captcha" data-sitekey="yoursecretkey" style="transform:scale(0.77);-webkit-transform:scale(0.77);transform-origin:0 0;-webkit-transform-origin:0 0;"></div>
You can also check this link for more information. Hope this helps someone.
+1
Luffy
source
to share