<?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: Styling the submit button</title>
		<link>https://legacy.forums.gravityhelp.com/topic/styling-the-submit-button-1</link>
		<description>Gravity Support Forums Topic: Styling the submit button</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 08:25:52 +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/styling-the-submit-button-1" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Styling the submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/styling-the-submit-button-1#post-35297</link>
			<pubDate>Wed, 14 Sep 2011 14:19:21 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">35297@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Happy this solution worked for you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>uxllc on "Styling the submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/styling-the-submit-button-1#post-35261</link>
			<pubDate>Wed, 14 Sep 2011 10:31:26 +0000</pubDate>
			<dc:creator>uxllc</dc:creator>
			<guid isPermaLink="false">35261@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks phuketnet -- realized only now that some of our clients' forms were not working in IE7 and below. Added the type='submit' attribute to buttons and it's all good now. Thanks again.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>phuketnet on "Styling the submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/styling-the-submit-button-1#post-26441</link>
			<pubDate>Fri, 27 May 2011 03:15:20 +0000</pubDate>
			<dc:creator>phuketnet</dc:creator>
			<guid isPermaLink="false">26441@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Just an update.  For IE 7 or less the button needs 'type=&#34;Submit&#34;' to enable the form to submit; e.g:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// filter the Gravity Forms button type
add_filter(&#38;quot;gform_submit_button&#38;quot;, &#38;quot;form_submit_button&#38;quot;, 10, 2);
function form_submit_button($button, $form){
	$xml = new SimpleXMLElement($button);
    return &#38;quot;&#38;lt;button type=&#38;#39;Submit&#38;#39; class=&#38;#39;submitBtn&#38;#39; id=&#38;#39;gform_submit_button_{$form[&#38;quot;id&#38;quot;]}&#38;#39;&#38;gt;&#38;lt;span&#38;gt;{$xml[&#38;#39;value&#38;#39;]}&#38;lt;/span&#38;gt;&#38;lt;/button&#38;gt;&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>phuketnet on "Styling the submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/styling-the-submit-button-1#post-25371</link>
			<pubDate>Thu, 12 May 2011 02:13:59 +0000</pubDate>
			<dc:creator>phuketnet</dc:creator>
			<guid isPermaLink="false">25371@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;To preserve the text value from the form button, you can use the following:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// filter the Gravity Forms button type
add_filter(&#38;quot;gform_submit_button&#38;quot;, &#38;quot;form_submit_button&#38;quot;, 10, 2);
function form_submit_button($button, $form){
	$xml = new SimpleXMLElement($button);
    return &#38;quot;&#38;lt;button  class=&#38;#39;submitBtn&#38;#39; id=&#38;#39;gform_submit_button_{$form[&#38;quot;id&#38;quot;]}&#38;#39;&#38;gt;&#38;lt;span&#38;gt;{$xml[&#38;#39;value&#38;#39;]}&#38;lt;/span&#38;gt;&#38;lt;/button&#38;gt;&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>studioleland on "Styling the submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/styling-the-submit-button-1#post-18813</link>
			<pubDate>Thu, 17 Feb 2011 13:05:41 +0000</pubDate>
			<dc:creator>studioleland</dc:creator>
			<guid isPermaLink="false">18813@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This is perfect.  Thank you for code example and complete response Kevin.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "Styling the submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/styling-the-submit-button-1#post-7381</link>
			<pubDate>Wed, 14 Jul 2010 01:16:12 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">7381@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That's one way to do it. Rock on.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rami Taher on "Styling the submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/styling-the-submit-button-1#post-7380</link>
			<pubDate>Wed, 14 Jul 2010 01:11:42 +0000</pubDate>
			<dc:creator>Rami Taher</dc:creator>
			<guid isPermaLink="false">7380@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thx for the quick response, that got the button to display, but there were alignment issues... so I just took a screenshot of the button (how it's supposed to look) and created an image out of it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "Styling the submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/styling-the-submit-button-1#post-7367</link>
			<pubDate>Tue, 13 Jul 2010 16:13:41 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">7367@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The submit button uses the &#34;input&#34; type rather than the &#34;button&#34; element that you need to pull of the &#34;sliding doors&#34; technique you're talking about.&#60;/p&#62;
&#60;p&#62;You can use change the default button using a built in filter. Just add the following to your theme's functions.php file.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// filter the Gravity Forms button type
add_filter(&#38;quot;gform_submit_button&#38;quot;, &#38;quot;form_submit_button&#38;quot;, 10, 2);
function form_submit_button($button, $form){
    return &#38;quot;&#38;lt;button class=&#38;#39;button&#38;#39; id=&#38;#39;gform_submit_button_{$form[&#38;quot;id&#38;quot;]}&#38;#39;&#38;gt;&#38;lt;span&#38;gt;Submit&#38;lt;/span&#38;gt;&#38;lt;/button&#38;gt;&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This will change the button for every form. If you only want it to apply to a specific form, you can do that this way (just remember to replace the &#34;_1&#34; with the id of the form you want to change)&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// filter the Gravity Forms button type for a specific form
add_filter(&#38;quot;gform_submit_button_1&#38;quot;, &#38;quot;form_submit_button&#38;quot;);
function form_submit_button($button){
    return &#38;quot;&#38;lt;button class=&#38;#39;button&#38;#39; id=&#38;#39;gform_submit_button_1&#38;#39;&#38;gt;&#38;lt;span&#38;gt;Submit&#38;lt;/span&#38;gt;&#38;lt;/button&#38;gt;&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;a href=&#34;http://grab.by/grabs/815bc0c2dddcdd29ec2062a4cd582750.png&#34; rel=&#34;nofollow&#34;&#62;source screenshot&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;That should get you going. Otherwise, you'll simply have to style the input with a button background that has both ends.&#60;/p&#62;
&#60;p&#62;You can always use an image button for each form which can be defined in the form settings.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://grab.by/grabs/93dc49cfada3ff729abc27e5c86e6b4c.png&#34; rel=&#34;nofollow&#34;&#62;screenshot&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rami Taher on "Styling the submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/styling-the-submit-button-1#post-7365</link>
			<pubDate>Tue, 13 Jul 2010 15:22:28 +0000</pubDate>
			<dc:creator>Rami Taher</dc:creator>
			<guid isPermaLink="false">7365@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I want to use my theme styling for the button in the form, the problem I'm facing is that in my theme CSS, for the image to appear correctly, I have to include the button text within &#38;lt;span&#38;gt;submit&#38;lt;/span&#38;gt; for it to display correctly. Otherwise, the button's right border is chopped off.&#60;/p&#62;
&#60;p&#62;This is how my CSS looks like for the button styling in the theme:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;.button { color:#5c5c5c; text-decoration:none; text-transform:uppercase; font-weight:700; display:block; background:url(../img/bg_button.png) no-repeat 0 0; height:75px; width:290px }&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I need one of two possible solutions:&#60;/p&#62;
&#60;p&#62;1. How to include the &#38;lt;span&#38;gt; tag into the submit button text&#60;/p&#62;
&#60;p&#62;OR&#60;/p&#62;
&#60;p&#62;2. How to get the CSS to display properly without the need for the &#38;lt;span&#38;gt; element.&#60;/p&#62;
&#60;p&#62;Thx in advance!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
