- Posts: 23
- Thank you received: 1
CSS Class on Headers & Messages?
- wirecreative
- Topic Author
- Offline
- Junior Member
-
Less
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:
Whereas, I expected it to look like this:
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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
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
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- wirecreative
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 1
7 years 10 months ago #99945
by wirecreative
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.
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.
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.