<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Two Gravity Forms On One Page - Styling Issues?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/two-gravity-forms-on-one-page-styling-issues</link>
		<description>Gravity Support Forums Topic: Two Gravity Forms On One Page - Styling Issues?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 04:53:19 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/two-gravity-forms-on-one-page-styling-issues" rel="self" type="application/rss+xml" />

		<item>
			<title>Rob Harrell on "Two Gravity Forms On One Page - Styling Issues?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/two-gravity-forms-on-one-page-styling-issues#post-40244</link>
			<pubDate>Mon, 07 Nov 2011 08:39:33 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">40244@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Chris, you placed this in your footer file?&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php gravity_form(4, false, false, false, &#38;#39;&#38;#39;, false); ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;and this in your header file?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
gravity_form_enqueue_scripts(4, true);
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Are you using the latest and greatest WP version and GF 1.6?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Higgins on "Two Gravity Forms On One Page - Styling Issues?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/two-gravity-forms-on-one-page-styling-issues#post-40230</link>
			<pubDate>Mon, 07 Nov 2011 03:23:24 +0000</pubDate>
			<dc:creator>Chris Higgins</dc:creator>
			<guid isPermaLink="false">40230@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;No love.  Including&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php gravity_form_enqueue_scripts(4, true); ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;breaks the site and returns this error:&#60;/p&#62;
&#60;p&#62;Fatal error: Call to undefined function gravity_form_enqueue_scripts()&#60;/p&#62;
&#60;p&#62;It's got me stumped.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "Two Gravity Forms On One Page - Styling Issues?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/two-gravity-forms-on-one-page-styling-issues#post-37689</link>
			<pubDate>Wed, 12 Oct 2011 08:54:28 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">37689@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yeah, all that was in the documentation page I linked to. (See section on &#34;Function Call&#34;) You don't need the &#34;do_shortcode&#34; method because there is a native function.. should be something like this example instead.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php gravity_form(4, false, false, false, &#38;#39;&#38;#39;, false); ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;When you use the shortcode in the post editor, WordPress knows to automatically enqueue the javascripts and CSS for the forms on that page. When you embed directly into the page template (php file) WordPress doesn't detect this so you have to manually enqueue your scripts.&#60;/p&#62;
&#60;p&#62;You would put a snippet like this in your header.php file to enqueue the scripts manually.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
gravity_form_enqueue_scripts(4, true);
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That is covered more here (see the section titled &#34;Enqueue Scripts and Styles&#34;)&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Embedding_A_Form&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Embedding_A_Form&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gravity_form_enqueue_scripts&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gravity_form_enqueue_scripts&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Higgins on "Two Gravity Forms On One Page - Styling Issues?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/two-gravity-forms-on-one-page-styling-issues#post-37686</link>
			<pubDate>Wed, 12 Oct 2011 07:07:01 +0000</pubDate>
			<dc:creator>Chris Higgins</dc:creator>
			<guid isPermaLink="false">37686@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for your reply Kevin, and apologies for taking so long to respond.&#60;/p&#62;
&#60;p&#62;My apologies for being a touch dense, but I couldn't really make much sense of your instructions.  :-(  I haven't a clue how to manually enqueue the form.&#60;/p&#62;
&#60;p&#62;The code I'm currently using is&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php echo do_shortcode(&#38;#39;[gravityform id=4 name=QuickContact title=false description=false]&#38;#39;); ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Sounds like that's incorrect though?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "Two Gravity Forms On One Page - Styling Issues?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/two-gravity-forms-on-one-page-styling-issues#post-36811</link>
			<pubDate>Sat, 01 Oct 2011 09:06:47 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">36811@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here's the deal. You have the form embedded in the footer using the php function call method but haven't properly enqueued the scripts/styles ( the other step when using this method ) for that form.&#60;/p&#62;
&#60;p&#62;When you visit a content page with a form that has been added via the shortcode, the scripts/styles are automatically enqueued for the content inside the WordPress loop so the CSS gets loaded and both of your Gravity Forms inherit from it.&#60;/p&#62;
&#60;p&#62;The solution would be to manually enqueue the scripts for your footer form, or better yet, replace the footer form with the built-in Gravity Forms Form Widget and it will automatically enqueue everything for you.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Embedding_A_Form&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Embedding_A_Form&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Higgins on "Two Gravity Forms On One Page - Styling Issues?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/two-gravity-forms-on-one-page-styling-issues#post-36809</link>
			<pubDate>Sat, 01 Oct 2011 05:14:21 +0000</pubDate>
			<dc:creator>Chris Higgins</dc:creator>
			<guid isPermaLink="false">36809@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm in the process of building my business website at electricmonk.com.au, and I'm having some styling issues with my contact forms. I've got a 'Quick Contact' form in the footer section of the site, which appears on every page. In addition to that, there is the main contact form on the 'Contact' page. For some reason, the styling that is applied to the form in the footer disappears when you visit the Contact page. By temporarily removing the main form on the Contact page, I've figured out that it's something to do with having two forms on one page, but that's as far as I've got.&#60;/p&#62;
&#60;p&#62;Admittedly, it is a little bit embarrassing to be asking for this kind of assistance on my own web development business website, but I'm really stuck! :-( If anyone has any ideas what the issue could be, I'd really appreciate the help.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
