<?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: Deregister Scripts / CSS</title>
		<link>https://legacy.forums.gravityhelp.com/topic/deregister-scripts-css</link>
		<description>Gravity Support Forums Topic: Deregister Scripts / CSS</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 10:41:59 +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/deregister-scripts-css" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Deregister Scripts / CSS"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deregister-scripts-css#post-32395</link>
			<pubDate>Fri, 12 Aug 2011 11:54:47 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">32395@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the update provdes.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>provdes on "Deregister Scripts / CSS"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deregister-scripts-css#post-32376</link>
			<pubDate>Fri, 12 Aug 2011 09:37:13 +0000</pubDate>
			<dc:creator>provdes</dc:creator>
			<guid isPermaLink="false">32376@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Alex,&#60;/p&#62;
&#60;p&#62;Thanks for you quick response.&#60;/p&#62;
&#60;p&#62;This information has been extremely helpful.&#60;/p&#62;
&#60;p&#62;I deregistered the CSS and the jQuery mobile framework totally took over and looked great.&#60;/p&#62;
&#60;p&#62;I added about 5 css selectors in my style sheet to remove some padding and list-styles.&#60;/p&#62;
&#60;p&#62;Worked a treat - thanks!!!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Deregister Scripts / CSS"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deregister-scripts-css#post-32288</link>
			<pubDate>Thu, 11 Aug 2011 10:27:03 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">32288@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I think what you really want is to de-register the css. You can do that with the following code snippet:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_enqueue_scripts&#38;quot;, &#38;quot;deregister_style&#38;quot;);
function deregister_style(){
    wp_deregister_style(&#38;quot;gforms_css&#38;quot;);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Gravity Forms only enqueues the scripts that it needs. For example, if you select a date-picker field, the datepicker.js script will be enqueued. If you use conditional logic, the conditional_logic.js script will be enqueued. If you don't select any feature that requires client side scripting, no scripts will be enqueued. So the best way to prevent client scripts from being enqueued is to simply not use fields/features that require client side scripts.&#60;br /&#62;
Having said that, the following code snippet will de-register all scripts that can possibly be enqueued by Gravity Forms:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_enqueue_scripts&#38;quot;, &#38;quot;deregister_scripts&#38;quot;);
function deregister_scripts(){
    wp_deregister_script(&#38;quot;gforms_conditional_logic_lib&#38;quot;);
    wp_deregister_script(&#38;quot;gforms_ui_datepicker&#38;quot;);
    wp_deregister_script(&#38;quot;gforms_gravityforms&#38;quot;);
    wp_deregister_script(&#38;quot;gforms_character_counter&#38;quot;);
    wp_deregister_script(&#38;quot;gforms_json&#38;quot;);
    wp_deregister_script(&#38;quot;jquery&#38;quot;);
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>provdes on "Deregister Scripts / CSS"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deregister-scripts-css#post-32277</link>
			<pubDate>Thu, 11 Aug 2011 04:42:37 +0000</pubDate>
			<dc:creator>provdes</dc:creator>
			<guid isPermaLink="false">32277@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I realize the gravity forms will not work if I de-register the scripts, but It's just for reference.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>provdes on "Deregister Scripts / CSS"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/deregister-scripts-css#post-32218</link>
			<pubDate>Wed, 10 Aug 2011 13:10:30 +0000</pubDate>
			<dc:creator>provdes</dc:creator>
			<guid isPermaLink="false">32218@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello, I'm building a mobile site using gravity forms, which means I'm using the gravity forms in another theme at the same time.&#60;/p&#62;
&#60;p&#62;I'm basically using gravity in two themes simultaneously - and in my mobile theme I need to deregister the scripts/css.&#60;/p&#62;
&#60;p&#62;But I cant find the handle's for the css or the script.&#60;/p&#62;
&#60;p&#62;Can you please tell me what they both are so I can deregister them,&#60;/p&#62;
&#60;p&#62;Many Thanks&#60;br /&#62;
Josh
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
