XF 2.2 Custom Field question

Dixie McCall

Well-known member
Hello
I need help with the custom field wrapper and value HTML as I'm not sure how to do this.

I would like the result displayed with a red border. Is this possible?

Thank you

:)
 

Attachments

  • Screenshot (909).webp
    Screenshot (909).webp
    27.4 KB · Views: 14
Solution
For value display html:
Code:
<span style="padding: 2px; color: #FF0000; border: 1px solid #FF0000;">{$value}</span>

Then place this in extra.less template:
CSS:
.pairs.pairs--columns.pairs--fixedSmall.pairs--customField>dt {
    padding: 5px;
}
Thank you this helps! The only thing that is missing is the two sides of the border.. See attachment. And Thank you for your help!
The sides are there they just can't be seen due to not having enough room to display. If you send me a link to a sample page I should be able to figure out what needs to be adjusted to get all 4 border sides to show.
 
For value display html:
Code:
<span style="padding: 2px; color: #FF0000; border: 1px solid #FF0000;">{$value}</span>

Then place this in extra.less template:
CSS:
.pairs.pairs--columns.pairs--fixedSmall.pairs--customField>dt {
    padding: 5px;
}
 
Solution
Back
Top Bottom