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.

Embedding Into A Theme

  1. Trying to embed a short form into my homepage.php file.

    Website here: http://www.cohesiveideas.com

    Form on home page not showing up.

    Code for that area:

    <div class="inner">
    		<div class="alignright"><div class="homeheader">
    <h3>Cohesive Ideas Start With A Conversation</h3></div>
    </div>
    	<?php gravity_form($id=10, $display_title=true, $display_description=true, $display_inactive=false, $field_values=null, $ajax=false, $tabindex); ?>
    
    <div class="alignleft">
    <iframe src="http://player.vimeo.com/video/42746046?autoplay=1" frameborder="0" width="508" height="286"></iframe>
    </div>
    	</div>

    Code added before wp_head"

    <?php
    gravity_form_enqueue_scripts(10, true);
    ?>

    I followed everything to the letter... at least tried to. Searched around on the forums and didn't find a fix.

    Posted 12 years ago on Thursday June 28, 2012 | Permalink
  2. David Peralty

    Interestingly enough, when I view the source of your home page, I actually see:

    <?php gravity_form(=10, =true, =true, =false, =null, =false, ); ?>

    Can you try

    <?php gravity_form(10,true,true,false); ?>

    Also, can you look to see why any PHP code at all is showing?

    Posted 12 years ago on Thursday June 28, 2012 | Permalink
  3. Okay updated it to just that and it is still not loading up. Hmmm...

    Posted 12 years ago on Thursday June 28, 2012 | Permalink
  4. David Peralty

    How are you adding this to that file? It is getting "stripped" out and not processed by PHP, and that's why it isn't working.

    If I view source and see <?php gravity_form(10,true,true,false); ?> then that tells me something is wrong with your theme and is stopping PHP from running.

    Posted 12 years ago on Thursday June 28, 2012 | Permalink
  5. not to hijack this post, but my gravity form shows up, but when I press submit nothing happens. I am also embedding into a theme page. i tried with ajax, with out ajax. I added gravity_form_enqueue_scripts right before the wp_head. I saw that only output a link to css, so i enqueued gravityform.js and conditional_logic.js. I made sure the paths to the files were correct. Still nothing is happening

    Posted 12 years ago on Wednesday September 12, 2012 | Permalink
  6. @smarie33 - please start a new topic for your unique situation and be sure to include a link to your site where the form is embedded.

    Posted 12 years ago on Friday September 14, 2012 | Permalink

This topic has been resolved and has been closed to new replies.