<?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: Add CSS class to error messages</title>
		<link>https://legacy.forums.gravityhelp.com/topic/add-css-class-to-error-messages</link>
		<description>Gravity Support Forums Topic: Add CSS class to error messages</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 08:28:07 +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/add-css-class-to-error-messages" rel="self" type="application/rss+xml" />

		<item>
			<title>charlesantoineidrac on "Add CSS class to error messages"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-css-class-to-error-messages#post-218454</link>
			<pubDate>Mon, 22 Apr 2013 03:39:28 +0000</pubDate>
			<dc:creator>charlesantoineidrac</dc:creator>
			<guid isPermaLink="false">218454@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Oh, and I forgot to answer to David:&#60;/p&#62;
&#60;p&#62;Many reasons to add some CSS classes... I guess the same ones that made your team add a filter to add some CSS class to other elements in the form.&#60;/p&#62;
&#60;p&#62;For it's:&#60;br /&#62;
Avoiding big CSS duplicates&#60;br /&#62;
Enabling twitter bootstrap classes
&#60;/p&#62;</description>
		</item>
		<item>
			<title>charlesantoineidrac on "Add CSS class to error messages"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-css-class-to-error-messages#post-218449</link>
			<pubDate>Mon, 22 Apr 2013 03:37:16 +0000</pubDate>
			<dc:creator>charlesantoineidrac</dc:creator>
			<guid isPermaLink="false">218449@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok thx !&#60;/p&#62;
&#60;p&#62;Best solution would of course to have a filter to do that...&#60;br /&#62;
Hey Gravity Team, you already have a couple of filters to add css classes at fields and confirmation button, why not push this a bit further, and make sure every single CSS class added can be customized... A unique filter for all those would be a nice solution, we could have a sort of array mapping the elements and the class they will receive.&#60;/p&#62;
&#60;p&#62;By the way, there is quite a few websites talking about this issue already, so I guess I am not alone. And relying on client side code to have correct CSS classes is not that great.&#60;br /&#62;
How can I officially add this to suggestion to the user wish list ?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Richard Vav on "Add CSS class to error messages"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-css-class-to-error-messages#post-215985</link>
			<pubDate>Fri, 19 Apr 2013 18:20:25 +0000</pubDate>
			<dc:creator>Richard Vav</dc:creator>
			<guid isPermaLink="false">215985@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there some reason you can't add your own customised CSS for the error class to your themes style sheet.&#60;/p&#62;
&#60;p&#62;The only other solution I can think off is that you could add additional classes using the jQuery addClass method, so the following example would add the class .mynewclass to any element that is assigned the class .gfield_error&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script&#38;gt;
$(document).ready(function(){
     $(&#38;#39;.gfield_error&#38;#39;).addClass(&#38;#39;mynewclass&#38;#39;);
});
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Richard
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Add CSS class to error messages"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-css-class-to-error-messages#post-215756</link>
			<pubDate>Fri, 19 Apr 2013 12:22:12 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">215756@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;As far as I know, you can't change this. Can you explain why it would be needed? Is .gfield_error not enough for some reason?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>charlesantoineidrac on "Add CSS class to error messages"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-css-class-to-error-messages#post-215261</link>
			<pubDate>Fri, 19 Apr 2013 03:57:34 +0000</pubDate>
			<dc:creator>charlesantoineidrac</dc:creator>
			<guid isPermaLink="false">215261@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi there,&#60;/p&#62;
&#60;p&#62;How can I add some classes to the error messages, besides .gfield_error ?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
