Hide reCAPTCHA v3 Badge From Your Site

[updated_on]
Share this post:
Share on facebook
Share on twitter
Share on reddit
Share on linkedin
Share on pinterest
Share on digg
Share on stumbleupon
Share on pocket
Share on email
Share on print

CSS Code

The CSS code below can be pasted into the Customizer (or your preferred location for global CSS). It will hide the badge everywhere on the website, including on the form page itself. If you want to have the badge appear on contact form pages, but not elsewhere check out the code below. Thanks to Travis for leaving this tip on in the YouTube channel comments!

Functions.php Code

Paste the code below at the bottom of your functions.php file. Make sure you don’t paste it inside another function in the file. If you do your site will go down until you fix the error. The code below will make it so the badge only appears on pages with contact forms.

You may need to update the “array” to include the slug for pages that have contact forms on your site. In the example below the page domain.com/contact and the page domain.com/some-other-page-with-form will have the badge visible. All other pages will not have the badge. Thanks to Steven for leaving this tip in the YouTube comments!

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest
Share on email

One Comment

Leave a Comment

Your email address will not be published. Required fields are marked *

Do NOT follow this link or you will be banned from the site!