May 30, 2019

Google reCAPTCHA: How to set width for V2?


When you add Google reCAPTCHA script on you contact form at that time its set default width for captcha box like below:


Now if you want to set width of this box then need to set some css on div.

See below example:

transform:scale(0.77);
-webkit-transform:scale(1.15); -Change this scale as per you needed width
transform-origin:0 0;
-webkit-transform-origin:0 0;


<div id="html_element" style="transform:scale(0.77);-webkit-transform:scale(1.15);transform-origin:0 0;-webkit-transform-origin:0 0;"></div>

Enjoy!

May 29, 2019

Google reCAPTCHA: error for site owner invalid key


- I found this type of error add script on my contact form: Click here for script

- After some research I found solution, you just need to select reCAPTCHA v2 instead of v3

Enjoy!

Integrating Google reCAPTCHA v3 in HTML Form with PHP

  What is Google reCAPTCHA v3? Google reCAPTCHA is a free service that helps protect websites from spam and abuse. reCAPTCHA v3 is the lates...