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 14 years ago on Tuesday December 14, 2010 |
Permalink