- Posts: 28
COMMUNITY FORUM
Add Extra Field Caption
- Alan Campbell
-
Topic Author
- Offline
- Junior Member
Less
More
10 years 4 months ago #140209
by Alan Campbell
Add Extra Field Caption was created by Alan Campbell
Hello,
I've been trying to find some way to add "captions" onto extra fields.
I would like to have the label (e.g. Project Name) as well as a caption/sub-label/description (e.g. Please include the full project title, including type) for extra fields in the front end.
Ideally, I would like them to have different CSS classes so I can control presentation.
I have tried to edit extrafield.php but to no avail. Basically, not sure what I should be changing. Any tips?
I also tried just adding a <span> into the label so I could simply make a "caption" by changing the CSS. But HTML is stripped from labels - I tried allowing this by editing extrafield.php but, again, didn't succeed!
Can anyone afford any advice on how to achieve this?
Thanks!
I've been trying to find some way to add "captions" onto extra fields.
I would like to have the label (e.g. Project Name) as well as a caption/sub-label/description (e.g. Please include the full project title, including type) for extra fields in the front end.
Ideally, I would like them to have different CSS classes so I can control presentation.
I have tried to edit extrafield.php but to no avail. Basically, not sure what I should be changing. Any tips?
I also tried just adding a <span> into the label so I could simply make a "caption" by changing the CSS. But HTML is stripped from labels - I tried allowing this by editing extrafield.php but, again, didn't succeed!
Can anyone afford any advice on how to achieve this?
Thanks!
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 4 months ago #140226
by Krikor Boghossian
Replied by Krikor Boghossian on topic Add Extra Field Caption
You can add an extrafield header and style it accordingly in your template.
Please Log in or Create an account to join the conversation.
- Alan Campbell
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 28
10 years 4 months ago #140240
by Alan Campbell
Replied by Alan Campbell on topic Add Extra Field Caption
Dear Krikor,
Many thanks for your reply.
I have already set up headers - such as Project Name.
But I would like to add a "sub-header", like added information. Like in Google Forms, where each field has a label and has an additional caption.
Alan
Many thanks for your reply.
I have already set up headers - such as Project Name.
But I would like to add a "sub-header", like added information. Like in Google Forms, where each field has a label and has an additional caption.
Alan
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 4 months ago #140248
by Krikor Boghossian
Replied by Krikor Boghossian on topic Add Extra Field Caption
You can render specific extrafields directly in your template (search the forum for snippets).
If can also check the id or the name of the extraloop and render it with a different markup.
If can also check the id or the name of the extraloop and render it with a different markup.
Please Log in or Create an account to join the conversation.