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.

Field sizing issues using Yoast Widget

  1. My widget appears to work perfectly on pages where there is another form - however on pages without the field does not resize to fit the widget.

    WORKS: http://www.cpgworks.com/job-seekers/registration-part-1/
    DOES NOT WORK: http://www.cpgworks.com/

    Posted 13 years ago on Friday August 6, 2010 | Permalink
  2. When using a Gravity Form in a sidebar widget or embedding it anywhere using the function call, you need to manually enqueue the scripts and CSS by placing a short script block in your theme's functions.php file.

    wp_enqueue_script("gforms_ui_datepicker", WP_PLUGIN_URL . "/gravityforms/js/jquery-ui/ui.datepicker.js", array("jquery"), "1.3.9", true);
    
    wp_enqueue_script("gforms_datepicker", WP_PLUGIN_URL . "/gravityforms/js/datepicker.js", array("gforms_ui_datepicker"), "1.3.9", true);
    
    wp_enqueue_script("gforms_conditional_logic_lib", WP_PLUGIN_URL . "/gravityforms/js/conditional_logic.js", array("gforms_ui_datepicker"), "1.3.9", true);
    
    wp_enqueue_style("gforms_css", WP_PLUGIN_URL . "/gravityforms/css/forms.css");

    Without this, the conditional logic scripts, datepicker script, form CSS and other elements needed for the full form functionality aren't loaded.

    You can find more information at the URL below

    http://www.gravityhelp.com/documentation/embedding-a-form/

    The reason you see it on some pages, is that forms added using the shortcode automatically enqueue these scripts and CSS.

    Posted 13 years ago on Friday August 6, 2010 | Permalink
  3. That's awesome–thanks!!

    Posted 13 years ago on Friday August 6, 2010 | Permalink

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