<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Change color of label</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/634/change-color-of-label</link><description>Hi I&amp;#39;m trying to change the color of the labels on mandatory fields in the edit/detail views. I created a custom.less css file with the following .redlabel { color: black; background-color : yellow; } label { color: red; } When I add the css class to</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Change color of label</title><link>https://sugarclub.sugarcrm.com/thread/2221?ContentTypeID=1</link><pubDate>Fri, 19 Aug 2016 15:41:47 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:8cf4e412-8921-4d50-b243-7fbb5d75272a</guid><dc:creator>Ramana Raju Santhana</dc:creator><description>&lt;p&gt;Hi Govind&lt;/p&gt;&lt;p&gt;Glad that it helped you&lt;/p&gt;&lt;p&gt;Best Regards&lt;/p&gt;&lt;p&gt;S Ramana Raju&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change color of label</title><link>https://sugarclub.sugarcrm.com/thread/2220?ContentTypeID=1</link><pubDate>Fri, 19 Aug 2016 15:38:55 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:57aa6b2a-267b-47fb-bb39-bc5287388d62</guid><dc:creator>Govind Dhanraj</dc:creator><description>&lt;p&gt;Works fantastic.....thank you very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change color of label</title><link>https://sugarclub.sugarcrm.com/thread/2219?ContentTypeID=1</link><pubDate>Fri, 19 Aug 2016 15:24:35 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:87cd3c67-934b-450f-b02b-a1f2ea6fd096</guid><dc:creator>Ramana Raju Santhana</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://sugarclub.sugarcrm.com/members/gdhanraj"&gt;Govind Dhanraj&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Just add above css in&amp;nbsp;custom/themes/custom.less&lt;/p&gt;&lt;p&gt;if the file is not there then create it and add the css code to do so:&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000000;background-color:#ffffff;"&gt;div[data-name="field-name"] .record-label {&lt;/span&gt;&lt;br style="color:#000000;background-color:#ffffff;" /&gt;&lt;span style="color:#000000;background-color:#ffffff;"&gt;color: red !important;&lt;/span&gt;&lt;br style="color:#000000;background-color:#ffffff;" /&gt;&lt;span style="color:#000000;background-color:#ffffff;"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000000;background-color:#ffffff;"&gt;Save it and do Quick Repair and Rebuild&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000000;background-color:#ffffff;"&gt;Hope this Helps..!!&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000000;background-color:#ffffff;"&gt;Best Regards&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000000;background-color:#ffffff;"&gt;S Ramana Raju&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change color of label</title><link>https://sugarclub.sugarcrm.com/thread/2218?ContentTypeID=1</link><pubDate>Fri, 19 Aug 2016 13:16:19 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:3e16c5fd-d4e4-4fdf-b9cd-f1fd64263ccb</guid><dc:creator>Govind Dhanraj</dc:creator><description>&lt;p&gt;Hi Ramana,&lt;/p&gt;&lt;p&gt;Thanks for your reply, where would I put that code?&lt;/p&gt;&lt;p&gt;I don&amp;#39;t think you use div tags in the record.php, this is for Sugar Professional just in case it makes a difference.&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;Govind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change color of label</title><link>https://sugarclub.sugarcrm.com/thread/2217?ContentTypeID=1</link><pubDate>Fri, 19 Aug 2016 07:43:59 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:ae67bbea-8713-48e1-878a-06fd08a502ca</guid><dc:creator>Ramana Raju Santhana</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://sugarclub.sugarcrm.com/members/gdhanraj"&gt;Govind Dhanraj&lt;/a&gt;&lt;/p&gt;&lt;p&gt;By adding css class will apply for field text not for label.&lt;/p&gt;&lt;p&gt;If you want to apply it for label you can write css directly to do so:&lt;/p&gt;&lt;p&gt;div[data-name="field-name"] .record-label {&lt;br /&gt; color: red !important;&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;Hope this Helps..!!&lt;/p&gt;&lt;p&gt;Best Regards&lt;/p&gt;&lt;p&gt;S Ramana Raju&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>