Call Us: +7.906.229.2627
Follow Us:
HTML5 template

Docs - Contact Forms with Captcha

PI themes contact form goes with google recaptcha by default. We added captcha to contact form only (footer form has no captcha), because we think that it would look weird in footer.

CAPTCHA WON'T WORK BEFORE YOU OBTAIN YOUR OWN API KEYS!

  1. To obtain your own API keys, you need go to Google Recaptcha website and click "Get reCAPTCHA".
  2. Then you need to login into your Google Account, and click "Sign Up Now" button on page Google Recaptcha Sign Up.
  3. Enter domain name and click "Create.
  4. Copy public API key and paste it instead of our API key in contact page html. There will be 2 places.
  5. Copy public API key & private API key and paste it instead of our API keys in handlers\formContact.php

To stop using captcha please set variable $use_captcha to "false" in handlers\formContact.php and remove peace of code below from contact page html.

<div  class="form-group pi-padding-bottom-10">
            <script type="text/javascript">
              var RecaptchaOptions = {
                theme : 'clean'
              };
            </script>
            <script type="text/javascript"
                src="http://www.google.com/recaptcha/api/challenge?k=XXX">
            </script>
            <noscript>
              <iframe src="http://www.google.com/recaptcha/api/noscript?k=XXX"
                  height="300" width="500" frameborder="0"></iframe><br>
              <textarea name="recaptcha_challenge_field" rows="3" cols="40">
              </textarea>
              <input type="hidden" name="recaptcha_response_field"
                   value="manual_challenge">
            </noscript>
          </div>
Latest Tweet
Contact Us
  • Address: 557 Cyan Avenue, Suite 65,
    New York, CA 9008
  • Phone: (123) 456-7890
  • Email: hello@pitheme.com
  • Monday - Friday: 9:00 am - 10:00 pm
    Saturday - Sunday: Closed
Say Hey

© 2014. «Aura HTML Theme». All right reserved.