Contact Form Captcha Not working

Modern, responsive, unique and elegant one-page WordPress theme to showcase your creativity
GK User
Wed Oct 02, 2013 4:27 am
I have the contact form on the home page like the demo... I have this code in the widget:

<div class="gk-contact-form" data-cols="2">
[contactform name="yes" email="yes" title="yes" captcha="yes"]

The Captcha shows up on the home page but it seems like it gets ignored... ie. emails go through even though a person puts in the info in the captcha box or not... I do have Shortcodes enabled in the Shortcodes settings. I have the code above in the Bottom I widget section. The emails do get sent and I do receive them.

I rather not put my site link here... but that shouldn't matter as you see the code above and where it's at... site works in every other way. I am an experienced WP user.
User avatar
Expert Boarder

GK User
Wed Oct 02, 2013 9:09 am
Hi,

Thanks for the information, you're right there's a small mistake with recaptcha, we'll improve it in the nearest theme update, for now you have to edit Creativity/layouts/gkcontact.php file and add this variable:
Code: Select all
global $tpl;
at the beginning of the file - after <?php line.
User avatar
Moderator

GK User
Wed Oct 02, 2013 8:22 pm
Thanks for the help - it worked. One other question... when someone sends an email... or if they mess up and forget to fill in all the blanks... a status message of that email ie. Your Email has been successfully sent pops up under the header... but the email form is at the bottom... so they gotta scroll up to see if the email was sent right... or if the site puts them at the top after the email was sent - they gotta scroll down a little to see it - most people wont know to do that... so if they mess up they wont know. Anyway to put that message under the form or below that widget area?
User avatar
Expert Boarder

GK User
Thu Oct 03, 2013 8:32 am
You can position this message absolutely, use e.g. this code in css/override.css (first enable this option in Creativity -> Template Options -> Advanced tab)
Code: Select all
#gk-content-wrapper > p:first-child {
text-align: center;
position: absolute;
bottom: 400px;
width: 100%;
}
User avatar
Moderator

GK User
Thu Oct 03, 2013 9:34 am
Thanks for the quick reply... it worked... kind of... problem is when people hit Send Message... the site reloads so they are taken to the top of the site... so they cant see the alert at the bottom... unless they scroll down... is there a way so the contact form just sends the message... and/or if there is an error ie. they dont fill all the fields in - the site doesnt reload.... or at least keeps the people on the part of the home page where the contact form is?
User avatar
Expert Boarder

GK User
Thu Oct 03, 2013 12:01 pm
Unfortunately it's not possible with this contact form. You'll have to rebuild completely form, so I can't help you with that..
User avatar
Moderator

GK User
Thu Oct 03, 2013 2:01 pm
Anyway then I can put the alert message all the way at the top tather than the bottom... ie. at the top of the browser? If the site is gonna refresh the screen and put the focus at the top - then might as well put it all the way at the top...
User avatar
Expert Boarder

GK User
Thu Oct 03, 2013 2:46 pm
Yes, you can place it at the top of the browser, but in this case you have to use negative top value:
Code: Select all
#gk-content-wrapper > p:first-child {
position: absolute;
top: -880px;
width: 100%;
}


880 px is around GK Image Show height, of course you can customize this value.
User avatar
Moderator


cron