From reCaptcha docs check the attributes of the g-recaptcha tag and the grecaptcha.render parameters section:
- g-recaptcha tag attribute : data icon
- grecaptcha.render parameter : icon
- Value : bottom bottom left row
- Default : rightright
- Description : optional. Move the reCAPTCHA icon. "inline" allows you to control CSS.
This is a basic example.
<html> <head> <title>reCaptcha example</title> <script src='https://www.google.com/recaptcha/api.js'></script> <style> .grecaptcha-badge { display: none; } </style> </head> <body> <form id="demo-form" action="/post" method="post"> <button data-sitekey="your_site_key" data-callback='onSubmit' data-badge="inline">Login</button> </form> </body> </html>
Set the data-badge attribute to inline , pay attention to data-badge="inline" :
<button type="submit" data-sitekey="your_site_key" data-callback='onSubmit' data-badge="inline">Login</button>
And in the html code:
<style> .grecaptcha-badge { display: none; } </style>
You can also add to your CSS:
.grecaptcha-badge { display: none; }
nbari source share