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.

display:none & Genesis

  1. krshoffner
    Member

    I am trying to locate the actual information that should go inside of the "wp_footer" hook to stop the display:none style happening.

    The issue Genesis uses it's own hook instead of the wp_footer. So when our form has conditional logic, it no longer displays, but is on the page. If I am correct, it looks like the snippet of information (gformInitSpinner, etc) is not loading on the page. I don't see any errors on the page, and can see that jQuery is loading in the head of the site.

    Is there something I can do, even in the PHP or CSS to get it to display properly?

    Posted 11 years ago on Thursday October 25, 2012 | Permalink
  2. krshoffner
    Member

    I have tried using the FAQ suggestion (<? php wp_footer(); ?>) but this is not the issue because Genesis uses a section in all of their themes for wp_footer.

    Any ideas would be helpful, as I want to be able to continue to use Gravity Forms for my client sites, but afraid if I cannot use Conditional Logic, I am going to have to abandon this product :-(

    Posted 11 years ago on Tuesday November 20, 2012 | Permalink
  3. David Peralty

    Gravity Forms requires wp_head and wp_footer functions for Conditional Logic to work correctly. Basically, Conditional Logic hides everything, and then reveals what should be displayed. That's why the display:none call.

    Posted 11 years ago on Tuesday November 20, 2012 | Permalink
  4. David Peralty

    Can you try this please to see if it helps?
    http://www.gravityhelp.com/documentation/page/Gravity_form_enqueue_scripts

    Posted 11 years ago on Tuesday November 20, 2012 | Permalink
  5. krshoffner
    Member

    I tried this, unfortunately for me and my site, that is not seeming to work.
    Even though I tried this, with Genesis frameworks themes it really doesn't seem to be as simple as adding just before the wp_header() call; because they don't want you to change the main parent theme due to updates made to that theme itself. Although I was hopeful it would work, it did not.

    I have been trying to find a way around using the form_display.php file of gforms, but I haven't came across the right combination yet to do this. I have been able to get everything to display, or hide, but obviously that isn't helpful - just tells me I am getting closer.

    Posted 11 years ago on Tuesday November 20, 2012 | Permalink
  6. Do not modify any of the Genesis code or Gravity Forms plugin files. You should return all those files back to their original state before going any further.

    Please post a link to your site so we can see what error is causing this problem. When conditional logic fails to work, it is usually due to a JavaScript error or jQuery error. That can be from a plugin or theme conflict, as David has suggested. It could also be due to the wrong version of jQuery or multiple versions of jQuery being included.

    Posted 11 years ago on Wednesday November 21, 2012 | Permalink
  7. krshoffner
    Member

    No worries, all Genesis and Gravity Forms files are still at their original state (just tried this a little yesterday in hopes it could be resolved).

    The site where I have a test site is http://bae.uncg.edu/advise/bryan-forms/

    Posted 11 years ago on Wednesday November 21, 2012 | Permalink
  8. You're including two versions of jQuery there. That could be the problem. This one is enqueued properly:

    <script type='text/javascript' src='http://bae.uncg.edu/advise/wp-includes/js/jquery/jquery.js?ver=1.7.2'></script>

    This one is extra and is being included too late to be useful:

    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

    I would try to remove the last one and see if your forms appear.

    Also, the markup on the page is invalid. You have a whole bunch of content before the closing < /head > tag. I don't think that's related, but it should be fixed.

    Posted 11 years ago on Wednesday November 21, 2012 | Permalink
  9. krshoffner
    Member

    Thanks Chris. I didn't even realize there was a second jQuery call. I was able to remove it and it seems to be working now.

    This can be closed now.

    Posted 11 years ago on Monday November 26, 2012 | Permalink
  10. David Peralty

    Glad to hear it.

    Posted 11 years ago on Monday November 26, 2012 | Permalink

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