: Wordpress how to hide protected by reCAPTCHA



Rise Company
22-01-2020, 11:40
Wordpress how to hide protected by reCAPTCHA
reCAPTCHA logo turn off- Remove re-captcha badge from all pages of website
reCaptcha badge on ALL pages, not just pages with Contact Forms!
Disable recaptcha v3 for all pages EXCEPT the one with a contact7 form
How do I hide reCAPTCHA v3 badge?

https://www.rise.company/upload/uploads/157968626909641.jpeg


The new plugin update has caused the v3 invisible recpatcha to show up on all pages, even one ones without a contact7 form. Is there a setting to disable this? Or can this be fixed?

2019 reCAPTCHA type:v3 score
, :

--------------------------------

--------------------------------

css


.grecaptcha-badge {
display: none !important;
}




.grecaptcha-badge {
visibility: hidden;
}


Note if you set the CSS to display:none it BREAKS the functionality. Instead, use visibility: hidden or opacity: 0

--------------------------------
/
--------------------------------

function.php child

//Remove Google ReCaptcha code/badge everywhere apart from select pages
add_action('wp_print_scripts', function () {
//Add pages you want to allow to array
if ( !is_page( array( 'contact','some-other-page-with-form' ) ) ){
wp_dequeue_script( 'google-recaptcha' );
//wp_dequeue_script( 'google-invisible-recaptcha' );
}
});