Paste the code below at the bottom of your functions.php file. In the example below the page and the page will have the badge visible.

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' );

The CSS code below can be pasted into main css file.

.grecaptcha-badge {
display: none;

Leave a Comment

You must be logged in to post a Review.