Advertisement

How to hide Google reCAPTCHA badge in WordPress

Google reCAPTCHA badge
Google reCAPTCHA badge on Barzrul.com

Finally, I removed the Google reCAPTCHA badge from Barzrul.com. Initially, I just want to leave it there. However, it becoming more noticeable when viewing on a smartphone due to the small screen.

As you can see now, the Google reCAPTCHA is no longer visible. It’s actually there but it’s not, it’s hidden. Yay!

Basically, the reason the badge is there is because I’m using Contact Form 7 plugin with the integration Google reCAPTCHA v3.

According to Google reCAPTCHA FAQ:

You are allowed to hide the badge as long as you include the reCAPTCHA branding visibly in the user flow.

Google Developers

Here’s how to hide Google reCAPTCHA badge and a the same time comply with the Google Developers policy.

See also safe methods to modify AdSense responsive ad code.

Advertisement

Hide Google reCAPTCHA badge in WordPress

First, add the following lines on any page using Googe reCAPTCHA. Example as you can see on my Contact page.

Go to Pages > All Pages > Contact > [Add the following lines] > Save.

This site is protected by reCAPTCHA and the Google <a href="https://policies.google.com/privacy">Privacy Policy</a> and <a href="https://policies.google.com/terms">Terms of Service</a> apply.

Then, add the following CSS:

Go to Appearance > Theme Editor > Style.css > [Add the following line] > Save.

.grecaptcha-badge { visibility: hidden; }

Done! Now the Google reCAPTCHA branding only visible to the user who is looking at my Contact page only. Not to everybody who is on any page of Barzrul.com.

Advertisement

Recommended for you

Leave a reply

Barzrul Tech uses cookies to ensure you get the best experience while browsing the site.Read more >>
+