Please Note: We are no longer using forums to facilitate standard support. 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.

Embedded form issue

  1. Bart
    Member

    When I embed a form in a template, the style sheet (/wp-content/plugins/gravityforms/css/forms.css?ver=1.4.5) is not called.

    When I add it through the wordpress admin the style sheet is included within the head.

    Easy enough fix on my part, but I thought I would give you a heads up.

    Great plugin by the way!

    Bart

    Posted 4 years ago on Tuesday December 14, 2010 | Permalink
  2. What do you mean when you embed a form in a template? Do you mean via the function call? Depending on how you are calling the form directly from the theme you may have to manually enqueue the necessary Javascript and CSS for it to function properly.

    The way WordPress works with enqueuing scripts dynamically it can't be done at anytime, it can only be done at certain times when a page is processed by WordPress. One of those ways is via the loop when a shortcode is parsed.

    See the documentation on embedding a form here:

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

    Under the function call documentation there is a note regarding the scripts and CSS and how to manually enqueue them.

    Posted 4 years ago on Tuesday December 14, 2010 | Permalink
  3. Bart
    Member

    Thanks Carl. It would have helped if I read that page all the way. ;)

    Added the code to the functions.php and it worked perfectly.

    Bart

    Posted 4 years ago on Wednesday December 15, 2010 | Permalink

 

Support Tickets

Open A New Support Ticket
 Open A New Priority Support Ticket *

* Developer license holders only