PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Adding Gravity form to page.php or single.php

  1. I am attempting to add a gravity form I created to the single.php file so it will show up under every post on the site. I am using it to allow people to submit interest in job opportunities and need a more functional way for them to upload their information. I am hoping that gravity can do this for me. The forms are great but I am not sure about making it work this way.

    Posted 12 years ago on Friday October 21, 2011 | Permalink
  2. Sure. Embed the form using the function call, rather than the shortcode. See here.

    http://www.gravityhelp.com/documentation/page/Embedding_A_Form#Function_Call

    You would add this code to your template file.

    When you use the function call like that, you also need to be sure you include the scripts and CSS, since they will not be included automatically when using the function call.

    http://www.gravityhelp.com/documentation/page/Embedding_A_Form#Enqueue_Scripts_and_Styles

    Posted 12 years ago on Friday October 21, 2011 | Permalink