0

RESOLVED - funny how simply writing down a problem can help you think. It was just a setting "close fancybox when content is clicked". So sorry to waste time / space. Please feel free to delete this to save my blushes :)

I'm struggling to get contact form 7 work properly with easy fancybox in my custom template.

I have read and tried everything I can find on the internet, but the problem remains that while I can get my form to "popup" in fancybox, as soon as you try to type in a field it "pops" back down again - which isn't a lot of use!

Here's the code I am using:

<a href="#contact_form_pop" class="fancybox">Contact Us</a>
<div style="display:none" class="fancybox-hidden">
<div id="contact_form_pop">
<?php echo do_shortcode('[contact-form-7 id="988" title="Contact"]'); ?>
</div>
</div>

The weird thing is that it seems to work OK on regular wp posts, but not with my template. Any ideas on how to fix this would be much appreciated - Thanks

closed as off-topic by birgire, fuxia Jul 26 '14 at 9:50

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

1

Was a simple setting option in the Fancybox settings: "close fancybox if content clicked"... DOH

Not the answer you're looking for? Browse other questions tagged or ask your own question.