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.

Style sheet in footer when calling form from custom shortcode

  1. Hello,

    I have a form that I am calling from within a custom shortcode programmed in functions.php. The short code evaluates if the user is logged in, and it presents them with a dual login/registration form if they are not. If they are logged in, it calls the Gravity Form.

    Everything works fine, except that this results in the Gravity Forms style sheet being called in the footer, making custom css a little harder than usual. If I just embed the form on the page outside the custom shortcode, the style sheet ends up in the header as expected.

    Has anyone else ran into this problem? Is there an easy way to get the style sheet back in the header to allow for normal css customization?

    Posted 9 years ago on Wednesday February 20, 2013 | Permalink
  2. Just curious - have you tried using this yet:

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

    Posted 9 years ago on Wednesday February 20, 2013 | Permalink
  3. Rob, I was unaware of that script. That might do the trick. I'll give it a try and see how it works.

    Posted 9 years ago on Wednesday February 20, 2013 | Permalink