How to hide the Google Invisible reCAPTCHA badge

前端 未结 15 2181
感情败类
感情败类 2020-12-02 04:15

When implementing the new Google Invisible reCATPTCHA, by default you get a little \"protected by reCAPTCHA\" badge in the bottom right of the screen that pops out when you

15条回答
  •  北海茫月
    2020-12-02 05:12

    I have tested all approaches and:

    WARNING: display: none DISABLES the spam checking!

    visibility: hidden and opacity: 0 do NOT disable the spam checking.

    Code to use:

    .grecaptcha-badge { 
        visibility: hidden;
    }
    

    When you hide the badge icon, Google wants you to reference their service on your form by adding this:

    This site is protected by reCAPTCHA and the Google 
        Privacy Policy and
        Terms of Service apply.
    
    

提交回复
热议问题