If you only want it on the contact us page you can follow this procedure
Copy /includes/templates/template_default/templates/tpl_contact_us_default.php to /includes/templates/responsive_classic/templates/
Then edit that file and find this code
Code:
<?php echo zen_draw_input_field('should_be_empty', '', ' size="40" id="CUAS" style="visibility:hidden; display:none;" autocomplete="off"'); ?>
insert the <?php echo recaptcha_get_html(); ?> after that line
then go to /includes/classes/observers/class.google_recaptcha.php an edit the following section
Code:
//comment out any pages you do NOT want to check
$pages_to_check[] = 'NOTIFY_CONTACT_US_CAPTCHA_CHECK';
$pages_to_check[] = 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK';
$pages_to_check[] = 'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK';
$this->attach($this,$pages_to_check);
}
So that it looks like this
Code:
//comment out any pages you do NOT want to check
$pages_to_check[] = 'NOTIFY_CONTACT_US_CAPTCHA_CHECK';
//$pages_to_check[] = 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK';
//$pages_to_check[] = 'NOTIFY_REVIEWS_WRITE_CAPTCHA_CHECK';
$this->attach($this,$pages_to_check);
}
Bookmarks