<?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: [resolved] Adding a css class to the submit button</title>
		<link>https://legacy.forums.gravityhelp.com/topic/adding-a-css-class-to-the-submit-button</link>
		<description>Gravity Support Forums Topic: [resolved] Adding a css class to the submit button</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 16:42:50 +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/adding-a-css-class-to-the-submit-button" rel="self" type="application/rss+xml" />

		<item>
			<title>Kevin Flahaut on "[resolved] Adding a css class to the submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/adding-a-css-class-to-the-submit-button#post-6843</link>
			<pubDate>Wed, 30 Jun 2010 00:15:51 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">6843@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Great deal. Thanks for the update
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Joachim Kudish on "[resolved] Adding a css class to the submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/adding-a-css-class-to-the-submit-button#post-6842</link>
			<pubDate>Wed, 30 Jun 2010 00:14:15 +0000</pubDate>
			<dc:creator>Joachim Kudish</dc:creator>
			<guid isPermaLink="false">6842@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;I just found this piece of code in the documentation, which might prove to be more efficient for what I am trying to do:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_submit_button&#38;quot;, &#38;quot;form_submit_button&#38;quot;);
function form_submit_button($button){
    return &#38;quot;&#38;lt;input type=&#38;#39;submit&#38;#39; value=&#38;#39;My new button&#38;#39; /&#38;gt;&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thanks for the great tip though.&#60;br /&#62;
Case closed
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "[resolved] Adding a css class to the submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/adding-a-css-class-to-the-submit-button#post-6821</link>
			<pubDate>Tue, 29 Jun 2010 14:06:48 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">6821@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Nope. Your version is the latest and should be fine. You need to make sure that jQuery is loaded somewhere BEFORE you call this script. You can either move the jQuery call to the header or move your script to the footer somewhere after jQuery is loaded.  That should get you rolling.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Joachim Kudish on "[resolved] Adding a css class to the submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/adding-a-css-class-to-the-submit-button#post-6820</link>
			<pubDate>Tue, 29 Jun 2010 13:24:43 +0000</pubDate>
			<dc:creator>Joachim Kudish</dc:creator>
			<guid isPermaLink="false">6820@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi there,&#60;/p&#62;
&#60;p&#62;Thanks a lot for your help, it's very appreciated!&#60;/p&#62;
&#60;p&#62;Is there a minimum version of jQuery required for this script to work, currently the site has 1.4.2 enqueued in the footer.&#60;br /&#62;
I've added the script to the header of the page, but the new class name doesn't get applied to the button. I've tried both versions of the script you provided.&#60;/p&#62;
&#60;p&#62;Any additional help would very nice :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "[resolved] Adding a css class to the submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/adding-a-css-class-to-the-submit-button#post-6786</link>
			<pubDate>Mon, 28 Jun 2010 21:45:58 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">6786@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can do this by adding some jQuery to your header.php file. This is assuming you've got the jQuery library loaded of course.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
jQuery.noConflict();
  jQuery(document).ready(function($) {

     $(&#38;quot;#gform_wrapper_1 .gform_footer input.button&#38;quot;).addClass(&#38;quot;mynewclassname&#38;quot;);

  });
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That's specific to that form ID. If you want it to apply to all forms, then you can leave the &#34;#gform_wrapper1&#34; portion off and it should work for all.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
jQuery.noConflict();
  jQuery(document).ready(function($) {

     $(&#38;quot;.gform_footer input.button&#38;quot;).addClass(&#38;quot;mynewclassname&#38;quot;);

  });
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Joachim Kudish on "[resolved] Adding a css class to the submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/adding-a-css-class-to-the-submit-button#post-6782</link>
			<pubDate>Mon, 28 Jun 2010 21:28:38 +0000</pubDate>
			<dc:creator>Joachim Kudish</dc:creator>
			<guid isPermaLink="false">6782@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I've purchased this script from codecanyon: &#60;a href=&#34;http://codecanyon.net/item/css3-buttons/109193&#34; rel=&#34;nofollow&#34;&#62;http://codecanyon.net/item/css3-buttons/109193&#60;/a&#62; and want to use it for the submit button, but to do so, I need to apply a new css class to the button, is there a way to apply a class to it without modifying core plugin files? &#60;/p&#62;
&#60;p&#62;Yes, I know I could just apply the css to the proper classes that GF generates, but doing it that way would mean a whole lot more work :)&#60;/p&#62;
&#60;p&#62;Any help would be appreciated.&#60;/p&#62;
&#60;p&#62;My form is here: &#60;a href=&#34;http://pamplemoussedesign.ca.s92071.gridserver.com/wp/say-hello/&#34; rel=&#34;nofollow&#34;&#62;http://pamplemoussedesign.ca.s92071.gridserver.com/wp/say-hello/&#60;/a&#62; (temporary url)&#60;/p&#62;
&#60;p&#62;PS: Sorry if this question has already been answered, I searched but didn't find anything
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
