<?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: Gravity form on external wordpress page, not in theme</title>
		<link>https://legacy.forums.gravityhelp.com/topic/gravity-form-on-external-wordpress-page-not-in-theme</link>
		<description>Gravity Support Forums Topic: Gravity form on external wordpress page, not in theme</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 16:32:00 +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/gravity-form-on-external-wordpress-page-not-in-theme" rel="self" type="application/rss+xml" />

		<item>
			<title>Rob Harrell on "Gravity form on external wordpress page, not in theme"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gravity-form-on-external-wordpress-page-not-in-theme#post-61610</link>
			<pubDate>Wed, 06 Jun 2012 10:37:51 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">61610@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Awesome Josh, glad you got it working. No bother here!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Josh on "Gravity form on external wordpress page, not in theme"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gravity-form-on-external-wordpress-page-not-in-theme#post-61609</link>
			<pubDate>Wed, 06 Jun 2012 10:30:45 +0000</pubDate>
			<dc:creator>Josh</dc:creator>
			<guid isPermaLink="false">61609@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Rob&#60;/p&#62;
&#60;p&#62;Have fixed it.&#60;/p&#62;
&#60;p&#62;Moved the wordpress live file to wp subfolder.&#60;/p&#62;
&#60;p&#62;But just changed my jquery in my stand alone version to...&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$(&#38;quot;#gform_1&#38;quot;).attr( &#38;quot;action&#38;quot;, &#38;quot;/wp/#gf_1&#38;quot; );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;...and that has sorted the problem. Very confusing.&#60;/p&#62;
&#60;p&#62;Thanks for your time and sorry to mess you about.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Josh on "Gravity form on external wordpress page, not in theme"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gravity-form-on-external-wordpress-page-not-in-theme#post-61605</link>
			<pubDate>Wed, 06 Jun 2012 10:20:37 +0000</pubDate>
			<dc:creator>Josh</dc:creator>
			<guid isPermaLink="false">61605@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ajax off still same. Though kind of need ajax to be on just for neatness.&#60;/p&#62;
&#60;p&#62;The link below is the index-temp.php non-theme code as posted in my jist.&#60;br /&#62;
&#60;a href=&#34;http://www.example.co.uk/&#34; rel=&#34;nofollow&#34;&#62;http://www.example.co.uk/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The working theme version is now here in wordpress folder...&#60;br /&#62;
&#60;a href=&#34;http://www.example.co.uk/wp&#34; rel=&#34;nofollow&#34;&#62;http://www.example.co.uk/wp/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "Gravity form on external wordpress page, not in theme"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gravity-form-on-external-wordpress-page-not-in-theme#post-61603</link>
			<pubDate>Wed, 06 Jun 2012 10:14:57 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">61603@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Not sure if it would make any difference, but what if you turn off AJAX on the form placement.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Josh on "Gravity form on external wordpress page, not in theme"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gravity-form-on-external-wordpress-page-not-in-theme#post-61601</link>
			<pubDate>Wed, 06 Jun 2012 10:11:39 +0000</pubDate>
			<dc:creator>Josh</dc:creator>
			<guid isPermaLink="false">61601@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Rob, &#60;/p&#62;
&#60;p&#62;Appreciate you getting back to me on this. &#60;/p&#62;
&#60;p&#62;Well wordpress will still be functioning, but inside a 'wp' sub-folder. This is where I'll be developing the new website theme.&#60;/p&#62;
&#60;p&#62;My original intention is to change index-temp.php to index.php. This is so it replaces the wordpress version, but mirrors it identically.&#60;/p&#62;
&#60;p&#62;I will do this now so you can see the result. But when doing this, the form becomes dead. You can see the ajax spinning wheel, but nothing happens. But will have to change it back when you've checked it out as it is live. This is the source of my stand alone holding page so you can see the php. This file is totally separate from wordpress but pulls in wordpress content.&#60;/p&#62;
&#60;p&#62;If you can't see the problem then don't worry I'll have do try digging more. But it's weird that it works only whist the original wordpress index file is in place, but does not as soon as I remove the original index file.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "Gravity form on external wordpress page, not in theme"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gravity-form-on-external-wordpress-page-not-in-theme#post-61596</link>
			<pubDate>Wed, 06 Jun 2012 09:46:47 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">61596@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Josh, I believe this is because WordPress simply requires an index.php file at the root for WordPress to function. What if you named index-temp to index and just kept a backup copy of the original index?&#60;/p&#62;
&#60;p&#62;Then you could place WP in it's own directory while the site is being built:&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Notice step 7 in particular.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Josh on "Gravity form on external wordpress page, not in theme"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gravity-form-on-external-wordpress-page-not-in-theme#post-61590</link>
			<pubDate>Wed, 06 Jun 2012 08:52:53 +0000</pubDate>
			<dc:creator>Josh</dc:creator>
			<guid isPermaLink="false">61590@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I'll try keep this short as it's a bit confusing. Any suggestions or advice would be really helpful. I think it's because I don't understand the internals of how these forms submit I can't figure it out. Here it goes...&#60;/p&#62;
&#60;p&#62;I originally had to create a holding page theme. In this holding page theme, I had a gravity form which consisted of a name and email. This form is placed using short code...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php echo do_shortcode(&#38;#39;[gravityform id=&#38;quot;1&#38;quot; name=&#38;quot;Subscribe Newsletter &#38;quot; title=&#38;quot;false&#38;quot; description=&#38;quot;true&#38;quot; ajax=&#38;quot;true&#38;quot;]&#38;#39;); ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But I've now got to convert my holding page theme to a stand alone index.php file which is not a theme. How ever I still need my gravity form on the page.&#60;/p&#62;
&#60;p&#62;This is so I can start building my main theme, and keep the holding page running separate from the wp installation, without actually moving the wp installation.&#60;/p&#62;
&#60;p&#62;So I simply merged my theme header.php, index.php and footer.php into one file (index-temp.php), and I put this index-temp.php into my www root. I then added this php code at the top of the page...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
define(&#38;#39;WP_USE_THEMES&#38;#39;, false);
require(&#38;#39;wp/wp-load.php&#38;#39;);
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This makes all my wordpress php based code work from the same installation, but as a stand alone file. Non theme based.&#60;/p&#62;
&#60;p&#62;I had to use a cheeky bit of jquery on the stand alone version to change the form action attribute...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$(&#38;quot;#gform_1&#38;quot;).attr( &#38;quot;action&#38;quot;, &#38;quot;/#gf_1&#38;quot; );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Please see links below...&#60;/p&#62;
&#60;ul&#62;
&#60;li&#62;This is my original theme based holding page...&#60;br /&#62;
&#60;a href=&#34;http://example.co.uk/&#34; rel=&#34;nofollow&#34;&#62;http://example.co.uk/&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;This is my stand alone holding page...&#60;br /&#62;
&#60;a href=&#34;http://example.co.uk/index-temp&#34; rel=&#34;nofollow&#34;&#62;http://example.co.uk/index-temp&#60;/a&#62;&#60;/li&#62;
&#60;/ul&#62;
&#60;p&#62;As you can see, the forms on both pages work fine.&#60;/p&#62;
&#60;p&#62;But if I remove the original theme based index.php, the form on the index-temp.php stops working? Nothing happens if you click 'Sign up' - I don't understand why removing the original index.php conflicts with the stand alone index-temp.php version?&#60;/p&#62;
&#60;p&#62;I know it's a little off topic but if you can shed some light that would really helpful.&#60;/p&#62;
&#60;p&#62;Thanks in advance.&#60;br /&#62;
Josh
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
