<?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 field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/add-css-class-to-field</link>
		<description>Gravity Support Forums Topic: Add CSS Class to field</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 22:19:35 +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-field" rel="self" type="application/rss+xml" />

		<item>
			<title>WebEndev on "Add CSS Class to field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-css-class-to-field#post-27442</link>
			<pubDate>Thu, 09 Jun 2011 16:22:15 +0000</pubDate>
			<dc:creator>WebEndev</dc:creator>
			<guid isPermaLink="false">27442@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am trying to add a new class to the textarea element for form number 7. Here is the code I am using:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Assign a CSS class to a Gravity Form field
add_action(&#38;quot;gform_field_css_class_7&#38;quot;, &#38;quot;custom_class&#38;quot;, 10, 3);
function custom_class($classes, $field, $form){
    if($field[&#38;quot;type&#38;quot;] == &#38;quot;textarea&#38;quot;){
        $classes .= &#38;quot; ckeditor&#38;quot;;
    }
    return $classes;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;It isn't working....&#60;br /&#62;
What would I be doing wrong?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
