<?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: Automatically create forms with WP 3 Network mode, modifying wp-config.php</title>
		<link>https://legacy.forums.gravityhelp.com/topic/automatically-create-forms-with-wp-3-network-mode-modifying-wp-configphp</link>
		<description>Gravity Support Forums Topic: Automatically create forms with WP 3 Network mode, modifying wp-config.php</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 22:05:33 +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/automatically-create-forms-with-wp-3-network-mode-modifying-wp-configphp" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Automatically create forms with WP 3 Network mode, modifying wp-config.php"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-create-forms-with-wp-3-network-mode-modifying-wp-configphp#post-152769</link>
			<pubDate>Sat, 23 Feb 2013 01:40:05 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">152769@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes, you can use that WordPress function in your theme's functions.php.  You should try to echo that constant somewhere to be sure it contains what you think it does, as a debugging step.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Scot on "Automatically create forms with WP 3 Network mode, modifying wp-config.php"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-create-forms-with-wp-3-network-mode-modifying-wp-configphp#post-151582</link>
			<pubDate>Thu, 21 Feb 2013 10:50:34 +0000</pubDate>
			<dc:creator>Scot</dc:creator>
			<guid isPermaLink="false">151582@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Or more appropriately, get_stylesheet_directory_uri(). :)&#60;br /&#62;
&#60;code&#62;define(&#38;#39;GF_THEME_IMPORT_FILE&#38;#39;, get_stylesheet_directory_uri() . &#38;#39;/gf_import.xml&#38;#39;);&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Scot on "Automatically create forms with WP 3 Network mode, modifying wp-config.php"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-create-forms-with-wp-3-network-mode-modifying-wp-configphp#post-151576</link>
			<pubDate>Thu, 21 Feb 2013 10:43:24 +0000</pubDate>
			<dc:creator>Scot</dc:creator>
			<guid isPermaLink="false">151576@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I initially pointed it to an Amazon S3 public url and that didn't work so I tried the relative path as mentioned higher up in this thread which also didn't work. My implementation for this feature is on a multisite environment where the domain is different every time. Can I use a WP function like get_stylesheet_directory() to form the path instead?&#60;/p&#62;
&#60;p&#62;So instead of this:&#60;br /&#62;
&#60;code&#62;define(&#38;quot;GF_THEME_IMPORT_FILE&#38;quot;, &#38;quot;http://www.domain.com/path/to/gf_import.xml&#38;quot;);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;It would look like this:&#60;br /&#62;
&#60;code&#62;define(&#38;#39;GF_THEME_IMPORT_FILE&#38;#39;, get_stylesheet_directory() . &#38;#39;/gf_import.xml&#38;#39;);&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Automatically create forms with WP 3 Network mode, modifying wp-config.php"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-create-forms-with-wp-3-network-mode-modifying-wp-configphp#post-148836</link>
			<pubDate>Mon, 18 Feb 2013 00:27:13 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">148836@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;According to the documentation: &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Advanced_Configuration_Options#GF_THEME_IMPORT_FILE&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Advanced_Configuration_Options#GF_THEME_IMPORT_FILE&#60;/a&#62; the path to the file should be a URL not a filesystem path.    Can you change that and see if it works?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Scot on "Automatically create forms with WP 3 Network mode, modifying wp-config.php"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-create-forms-with-wp-3-network-mode-modifying-wp-configphp#post-147077</link>
			<pubDate>Thu, 14 Feb 2013 22:04:43 +0000</pubDate>
			<dc:creator>Scot</dc:creator>
			<guid isPermaLink="false">147077@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;No, it's not working. The code I am referring to is line 438 in gravityforms.php:&#60;br /&#62;
&#60;code&#62;$themes = get_option(&#38;quot;gf_imported_theme_file&#38;quot;);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;It is returning the name of the parent theme. I don't know if that is the source of the problem or not. Here is what I am doing.&#60;br /&#62;
Create a new blog in my multisite setup&#60;br /&#62;
the default theme is twenty twelve&#60;br /&#62;
I activate the child theme with this in the child theme functions.php  &#60;code&#62;define(&#38;#39;GF_THEME_IMPORT_FILE&#38;#39;, &#38;#39;gform.xml&#38;#39;);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;This should kick off when the child theme is activated, right?&#60;/p&#62;
&#60;p&#62;This will be a nice time saver for my multisite implementation and I am looking forward to making it work. What is the next step in figuring this out?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Automatically create forms with WP 3 Network mode, modifying wp-config.php"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-create-forms-with-wp-3-network-mode-modifying-wp-configphp#post-146944</link>
			<pubDate>Thu, 14 Feb 2013 12:07:48 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">146944@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I don't think it is related to the child theme.  The function in gravityforms.php calls get_stylesheet_directory:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[php]
GFExport::import_file(get_stylesheet_directory() . &#38;quot;/&#38;quot; . GF_THEME_IMPORT_FILE);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That will return the child directory if one is being used:&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/Function_Reference/get_stylesheet_directory&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/get_stylesheet_directory&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Is this still not working?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Scot on "Automatically create forms with WP 3 Network mode, modifying wp-config.php"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-create-forms-with-wp-3-network-mode-modifying-wp-configphp#post-145232</link>
			<pubDate>Sat, 09 Feb 2013 16:10:30 +0000</pubDate>
			<dc:creator>Scot</dc:creator>
			<guid isPermaLink="false">145232@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;One more thought... I am using a child theme and the code below is returning the name of the parent theme. It may think that the form is already loaded. Could this be the problem?&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$themes = get_option(&#38;quot;gf_imported_theme_file&#38;quot;);&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Scot on "Automatically create forms with WP 3 Network mode, modifying wp-config.php"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-create-forms-with-wp-3-network-mode-modifying-wp-configphp#post-145206</link>
			<pubDate>Sat, 09 Feb 2013 14:31:59 +0000</pubDate>
			<dc:creator>Scot</dc:creator>
			<guid isPermaLink="false">145206@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am also trying to get GF_THEME_IMPORT_FILE to work. The XML file that I have is in the theme folder and I am defining the variable in my theme's functions.php file. It's doesn't seem to be firing. The theme is on an multisite installation so it should work for each site that uses this theme but it's not working. Is there multisite support for themes using GF_THEME_IMPORT_FILE?&#60;/p&#62;
&#60;p&#62;If it is firing off, is there some way that I can tell if why it isn't working?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Automatically create forms with WP 3 Network mode, modifying wp-config.php"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-create-forms-with-wp-3-network-mode-modifying-wp-configphp#post-20050</link>
			<pubDate>Mon, 07 Mar 2011 13:17:52 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">20050@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;When using the GF_THEME_IMPORT_FILE functionality you don't use an absolute path, it assumes it's in the theme folder itself.  So if you place the gform.xml file in the theme folder can simply do:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;define(&#38;#39;GF_THEME_IMPORT_FILE&#38;#39;, &#38;#39;gform.xml&#38;#39;);&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mymodernweb on "Automatically create forms with WP 3 Network mode, modifying wp-config.php"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-create-forms-with-wp-3-network-mode-modifying-wp-configphp#post-20029</link>
			<pubDate>Mon, 07 Mar 2011 11:42:43 +0000</pubDate>
			<dc:creator>mymodernweb</dc:creator>
			<guid isPermaLink="false">20029@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have been attempting to get a form to import on a new site creation for a while now. Can't seem to get it to take.&#60;/p&#62;
&#60;p&#62;I have this in my theme's functions.php file towards the end:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;define(&#38;#39;GF_THEME_IMPORT_FILE&#38;#39;, ABSPATH.&#38;#39;wp-content/themes/mycustomtheme/gform.xml&#38;#39;);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Yet it won't import at all when I do this. As far as I can tell the link to the file is accurate since it is in the same folder as the functions.php. Any thoughts or suggestions?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
