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.

Forms hidden after load

  1. I've updated to the latest version, and a bit of an interesting error - of my 4 forms loaded onto the page, 3 are being hidden after page load.

    Any idea what could be doing this? I feel like its a javascript/jquery load, but I honestly can't pin-point this one.

    Also, I think the ones that are hidden have some sort of conditional formatting, and the one that is visible is just 'basic'.

    See the page here: http://sequoiawaste.com/opportunities/

    Thanks

    Posted 5 years ago on Friday May 17, 2013 | Permalink
  2. Richard Vav
    Administrator

    Hi Charlie, as I mentioned in response to your previous topic your issues are down to your theme including multiple old versions of jQuery in the head, you need to remove these two script calls from your themes header.

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
    <script language="javascript" type="text/javascript" src="http://sequoiawaste.com/wp-content/themes/sequoia/homejs/jquery-1.2.6.min.js"></script>

    And then you have the correct version down in the footer

    <script type='text/javascript' src='http://sequoiawaste.com/wp-includes/js/jquery/jquery.js?ver=1.8.3'></script>

    Also being loaded in your footer are the Gravity Forms stylesheets, stylesheets should always be loaded in the head of page, the Gravity Forms plugin won't be responsible for this, I am only guessing but I think the wp_head() function call has been placed in your themes footer instead of the head where it belongs.

    Posted 5 years ago on Friday May 17, 2013 | Permalink
  3. Richard,

    Thank you - I think I accidentaly reverted to an older header file since my last post :(

    I believe I have the correct jQuery versions now, but the footer issue is baffling me. I don't call anything in the footer except for child posts to serve links, some css, and wp_footer()

    see my footer code here: http://pastebin.com/xpPZ8RZK

    Is it possible this css is getting called from somewhere else?

    Posted 5 years ago on Friday May 17, 2013 | Permalink
  4. Richard Vav
    Administrator

    Strange, can you post the code from your header and functions files as well.

    Posted 5 years ago on Friday May 17, 2013 | Permalink
  5. My general site header : http://pastebin.com/BSzMcuCa

    Added header files for this page: http://pastebin.com/SsKvKm19

    Functions for this theme: http://pastebin.com/gk86mftG

    My page Template: http://pastebin.com/iUepW1HY (where I am calling G-Forms via PHP)

    Posted 5 years ago on Friday May 17, 2013 | Permalink
  6. Richard Vav
    Administrator

    Regarding your general site header the wp_head function is missing which is probably why plugins are including their stylesheets in the footer, you can add it before the closing head tag like so

    <?php wp_head(); ?>
    </head>

    I would also advise against including jquery like this

    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js "></script>

    instead I would recommend you include it like so, other plugins will see this and know not to include it again.

    <?php wp_enqueue_script("jquery"); ?>

    Other than that everything else looks OK.

    Edit: I should probably clarify the best order would be like so

    /* your stylesheets go here */
    <?php wp_enqueue_script("jquery"); ?>
    <?php wp_head(); ?>
    /* your other scripts go here */
    </head>
    Posted 5 years ago on Friday May 17, 2013 | Permalink
  7. Thank you very much! Had no idea wp_head would be an issue. Thats also a much handier way of calling jQuery. Out of curiosity, where is it pulling that? Wordpress 3.5.X's installed jQuery package?

    Charlie

    Posted 5 years ago on Friday May 17, 2013 | Permalink
  8. Richard Vav
    Administrator

    You're welcome and yes enqueueing jQuery in that way uses the copy included with wordpress which with WP 3.5.1 is jQuery 1.8.3, and when WP 3.6 is released later this month it will be updated to at least v1.9.1 unless you install the Use Google Libraries plugin which will automatically use the Google CDN hosted copy of the same version.

    Posted 5 years ago on Friday May 17, 2013 | Permalink

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