<?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 a CSS class to one word in the field label</title>
		<link>https://legacy.forums.gravityhelp.com/topic/add-a-css-class-to-one-word-in-the-field-label</link>
		<description>Gravity Support Forums Topic: Add a CSS class to one word in the field label</description>
		<language>en-US</language>
		<pubDate>Wed, 22 Apr 2026 22:55:05 +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-a-css-class-to-one-word-in-the-field-label" rel="self" type="application/rss+xml" />

		<item>
			<title>fabier on "Add a CSS class to one word in the field label"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-a-css-class-to-one-word-in-the-field-label#post-87630</link>
			<pubDate>Mon, 05 Nov 2012 15:09:21 +0000</pubDate>
			<dc:creator>fabier</dc:creator>
			<guid isPermaLink="false">87630@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks :).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Add a CSS class to one word in the field label"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-a-css-class-to-one-word-in-the-field-label#post-87498</link>
			<pubDate>Mon, 05 Nov 2012 07:22:22 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">87498@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is this the post you are referencing?&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/allow-html-in-field-label?message=closed#post-5565&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/allow-html-in-field-label?message=closed#post-5565&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The issue does not come up frequently which is why it has not been added as a feature.  I'll tag it as a feature request so we don't lose track of it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fabier on "Add a CSS class to one word in the field label"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-a-css-class-to-one-word-in-the-field-label#post-87391</link>
			<pubDate>Mon, 05 Nov 2012 01:49:44 +0000</pubDate>
			<dc:creator>fabier</dc:creator>
			<guid isPermaLink="false">87391@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I did finally find another thread which gave the same suggestion, but I'm really rather disappointed by this. Resorting to Javascript for display issues feels like really bad form IMHO. &#60;/p&#62;
&#60;p&#62;Ultimately, I coded the following in case anyone else is curious. This should REALLY be solved in some form. Maybe enable shortcodes in the field label when the form is displayed. That would have made my life so much easier... :-/&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
&#38;lt;script type=&#34;text/javascript&#34;&#38;gt;&#60;br /&#62;
 jQuery.noConflict();&#60;br /&#62;
   jQuery(document).ready(function($) {&#60;br /&#62;
		function replaceblue() {&#60;br /&#62;
			  $(&#34;label&#34;).each(function(index) {&#60;br /&#62;
				var html = $(this).html();&#60;br /&#62;
				var reghtml = html.replace(/\*([A-z0-9 _\/]*)\*/gi, function($1, $2) { return '&#38;lt;span class=&#34;evblue&#34;&#38;gt;' + $2 + '&#38;lt;/span&#38;gt;'});&#60;br /&#62;
				$(this).html(reghtml);&#60;br /&#62;
			  });&#60;br /&#62;
		}&#60;br /&#62;
		jQuery(document).bind('gform_post_render', function(){&#60;br /&#62;
			replaceblue();&#60;br /&#62;
		});&#60;br /&#62;
	replaceblue();&#60;br /&#62;
   });&#60;/p&#62;
&#60;p&#62; &#38;lt;/script&#38;gt;
&#60;/p&#62;&#60;/blockquote&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Add a CSS class to one word in the field label"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-a-css-class-to-one-word-in-the-field-label#post-87355</link>
			<pubDate>Sun, 04 Nov 2012 23:58:00 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">87355@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I don't think you will be able to do this in the form builder. You're going to have to resort to jQuery to change the display of that one word in your label.  It would be an approach similar to this: &#60;a href=&#34;http://stackoverflow.com/a/8881222&#34; rel=&#34;nofollow&#34;&#62;http://stackoverflow.com/a/8881222&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fabier on "Add a CSS class to one word in the field label"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add-a-css-class-to-one-word-in-the-field-label#post-87246</link>
			<pubDate>Sun, 04 Nov 2012 11:45:15 +0000</pubDate>
			<dc:creator>fabier</dc:creator>
			<guid isPermaLink="false">87246@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;I've searched all over the internet for a solution to this to no avail. I am looking for a way to add a CSS class to one word in my field labels either with a simple span tag or I wouldn't be adverse to writing a simple shortcode to do the trick either. But Gravity forms renders both options useless, it seems.&#60;/p&#62;
&#60;p&#62;Is there a solution here which I am missing?&#60;/p&#62;
&#60;p&#62;Here is a quick screenshot of what I'm trying to do: &#60;a href=&#34;http://alleysandcorners.com/sfs/2012-11-04_1043.png&#34; rel=&#34;nofollow&#34;&#62;http://alleysandcorners.com/sfs/2012-11-04_1043.png&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks for any help you can provide!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
