Problem with recaptcha on contact page

GK User
Fri Oct 23, 2015 12:10 pm
Hello,

I have a problem with recapctha on the contact page. Recaptcha is enabled in the theme preferences and keys are correct, but the recapctha is not showing on the contact page and if I try to submit the for I got the following error: Sorry, an error occured. The reCAPTCHA wasn't entered correctly. Go back and try it again.
Here is the url of the website: http://estacaofloresta.com.br/wordpress/contato/

Thanks in advance,
Bruno
User avatar
Expert Boarder

GK User
Fri Oct 23, 2015 2:17 pm
Hello,

Could you please provide me with a back-end and (S)FTP access via PM (click the “Private Message” text underneath my avatar) so that I may analyze it?
User avatar
Moderator

GK User
Tue Oct 27, 2015 8:34 pm
Please add the following fragment into your Hotel/functions.php file"
Code: Select all
if (is_page_template( 'template.contact.php' ) && get_theme_mod('hotel_contact_enable_captcha', 0) == 1) {
      wp_enqueue_script( 'hotel-captcha-script', 'https://www.google.com/recaptcha/api.js', array( 'jquery' ), false, false);
   }

before line:
Code: Select all
// Loads JavaScript file for responsive video.
User avatar
Moderator

GK User
Fri Oct 30, 2015 8:56 am
Thank very much! Great Support!
User avatar
Expert Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.