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.

Link tags appear at end of body

  1. When displaying a form, the Gravity Forms stylesheets (e.g. formreset.css, formsmain.css, etc.) appear at the end of a page's body rather than in the document's head. Link elements are not supposed to exist outside the head, and this causes a W3C validation error. It also makes it slightly harder to override Gravity Forms styles in another stylesheet that's been enqueued and printed in the head. I've disabled CSS output and styled my forms manually, but is this a bug with Gravity Forms or Wordpress?

    Posted 11 years ago on Friday May 24, 2013 | Permalink
  2. David Peralty

    Can you link to your site so we can see this in action? As far as I know, these files should be output in your theme's header by default.

    Posted 11 years ago on Friday May 24, 2013 | Permalink
  3. That's what I thought, too, which is why I got confused. I was originally building the form using do_shortcode() within a page template, outside the content loop. After I posted I realized that might be the problem so I replaced it with a form widget, which also causes the stylesheets to be printed in the footer

    But the stylesheets are definitely getting to the header when the form is included in page content.

    Posted 11 years ago on Friday May 24, 2013 | Permalink