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.

[resolved] theme issue with conditional logic and wp_footer()

  1. atrace
    Member

    Hi,
    I know I have a theme issue since gravity forms is working with the twentyten default theme, but I'm not sure where to look next. I've checked my theme's footer.php and wp_footer(); is present before the </body> tag but I still have the style="display:none;" for the whole form.

    Any help or suggestions on where to look next would be great.

    Thanks,
    Austyn

    Posted 14 years ago on Tuesday June 29, 2010 | Permalink
  2. The display: none; is normal. The problem is something is preventing the javascript from unhiding the form. If you post a link to your form we can take a look and see if we notice anything unusual.

    Some things to look for... make sure you have the wp_head(); call in your header.php file. The next thing is to make sure there are NO javascript errors on your site. ANY javascript error can cause ALL javascript on the page to stop executing. So if some other script on your site throws an error, it can prevent the Gravity Forms javascript from working.

    Posted 14 years ago on Tuesday June 29, 2010 | Permalink
  3. atrace
    Member

    Here's the form: http://senortamale.net/wpins/request-a-quote/

    wp_head() call is in the header. I've removed all the javascript that had a few errors but still no luck. I do see this error:

    syntax error
    window['gf_form_conditional_logic'] = new Array();</p>\n

    Thanks for your help.
    Austyn

    Posted 14 years ago on Tuesday June 29, 2010 | Permalink
  4. Look in your theme's functions.php file for "wpautop" - It looks like there's a shortcode in there that's wrapping the gravity forms script in < p> tags that's breaking it.

    We've seen this several times recently.

    http://forum.gravityhelp.com/topic/form-worked-for-a-while-and-then-disappeared#post-6394

    You can remove the shortcode portion from your functions file if you want, or it usually works if you wrap the Gravity Forms shortcode with the [raw][/raw] or whatever it is.

    Posted 14 years ago on Tuesday June 29, 2010 | Permalink
  5. atrace
    Member

    Awesome that did it.

    Thank you!

    Austyn

    Posted 14 years ago on Tuesday June 29, 2010 | Permalink
  6. Good Stuff. Glad I could help out.

    Posted 14 years ago on Tuesday June 29, 2010 | Permalink
  7. Good Stuff. Glad I could help out.

    Posted 14 years ago on Tuesday June 29, 2010 | Permalink

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