Last active
March 8, 2016 19:21
-
-
Save mandiwise/c45939e0d8ecd901c4c2 to your computer and use it in GitHub Desktop.
Using Gravity Forms with a modal and ajax
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="voting-form" style="display:none"> | |
<?php echo do_shortcode( '[gravityform id="6" title="false" description="false" ajax="true"]' ) ?> | |
</div> | |
<a href="#voting-form" class="fancybox button">Vote Now</a> |
Have you tried this:
<?php gravity_form(2, false, false, false, '', true, 12); ?>
https://www.gravityhelp.com/documentation/article/embedding-a-form/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, just tried out this code directly on my page on my wordpress page but I am getting a PHP error. How did you include it?