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.

Issue with Solo Theme Trust Template

  1. Can't get the streams to well... stream on the Twitter and Flikr widgets when Gravity is active. If I disable it, they appear on the bottom of the site. It definitely is a Gravity issue, Theme Trust sent me here- Peace---. http://www.Listu1st.com

    Posted 7 years ago on Tuesday December 6, 2011 | Permalink
  2. Here is error code the folks gave me to post here:

    Error: jQuery("#input_1_2").textareaCount is not a function
    Source File: http://listu1st.com/
    Line: 426

    Posted 7 years ago on Tuesday December 6, 2011 | Permalink
  3. The JS error, along with the form layout issues, are related to none of the Gravity Forms scripts or CSS being output on the page.

    The issue isn't with Gravity Forms, it's due to how this particular Theme Trust theme is put together. It's a non-traditional theme that doesn't use a traditional loop to display posts and pages. This in combination with how WordPress enqueue operates results in this problem.

    Gravity Forms uses the WordPress enqueue function to insert scripts and CSS into the header and footer of your site when using the shortcode. However, enqueue only works at certain points in the WordPress page execution cycle. For most themes this isn't an issue, but this theme isn't traditional and when the Gravity Forms shortcode is executed it is too late for it to be able to enqueue the scripts.

    The solution to this is to enqueue the scripts manually using a Gravity Forms enqueue function. What you need to do is execute this enqueue function by placing it in your themes functions.php file. This will then automatically enqueue the necessary scripts and CSS for you since the shortcode is unable to do so because of how the theme is put together.

    Here is the documentation for the enqueue function you need to use:

    http://www.gravityhelp.com/documentation/page/Gravity_form_enqueue_scripts

    Look at the example, that is what you need to add to your themes functions.php file and pass the correct form id for the form that is used on the Submit Form page. It will then enqueue the necessary scripts and CSS for that form on the page and the form should appear better visually and function properly if things are implemented correctly.

    Posted 7 years ago on Tuesday December 6, 2011 | Permalink
  4. Thanks Carl. I will let the good folks over at Theme Trust know. Have a good night.

    Posted 7 years ago on Tuesday December 6, 2011 | Permalink
  5. Just an FYI- We resolved the issue by adding this to the header php. Hopefullt this info could help someone in the future that has similar issue

    <?php gravity_form_enqueue_scripts(1, true); ?> (1 being the id of the form)

    Posted 7 years ago on Tuesday December 13, 2011 | Permalink
  6. Thank you for the update.

    Posted 7 years ago on Tuesday December 13, 2011 | Permalink

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