CSS Class on Headers & Messages?

  • wirecreative
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 10 months ago - 7 years 10 months ago #99893 by wirecreative
CSS Class on Headers & Messages? was created by wirecreative
When I try to use the CSS Class on a custom field that is a message or header, the class doesn't get applied to the field -- the class attribute is not apparent in the code. However, CSS Class does work with the actual form input fields, so it looks like there may have been an oversight in how this applies to the custom fields that only display text.

For example, if I add a css class of "customtxt" to a header, the code that gets written is only:
Code:
<h3 class="osm-heading" id="field_osm_Questions_Txt">...</h3>

Whereas, I expected it to look like this:
Code:
<h3 class="osm-heading customtxt" id="field_osm_Questions_Txt">...</h3>
Last edit: 7 years 10 months ago by wirecreative. Reason: Added example

Please Log in or Create an account to join the conversation.

More
7 years 10 months ago #99909 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic CSS Class on Headers & Messages?
Yes. Look like I don't include css class setting for these fields. I think having id attribute should be enough for you to customize the css for that type of custom field? Do you still need css applied? If you need it, I will take a quick look at the code and correct the behavior. Otherwise, this is something we can apply for next release

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • wirecreative
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 10 months ago #99945 by wirecreative
Replied by wirecreative on topic CSS Class on Headers & Messages?

Tuan Pham Ngoc wrote: Yes. Look like I don't include css class setting for these fields. I think having id attribute should be enough for you to customize the css for that type of custom field? Do you still need css applied? If you need it, I will take a quick look at the code and correct the behavior. Otherwise, this is something we can apply for next release.


It would be a nice feature, as it would let us apply pre-existing styles to a field rather than having to write new css for each one. Thanks.

Please Log in or Create an account to join the conversation.