I would like to make field label style bold. Currently I can do this

$content = '<b>' . $content. '</b>';

to make field content (only) bold. It would be useful, if I could use $label variable to do the same only to label.

Comments

milos.kroulik’s picture

I found an unexpected workaround - I was able to set label as bold directly by setting field label to:

<b>[label]</b>

Should this be added to "gotchas" documentarion page?

vegansupreme’s picture

Status: Active » Fixed

Whoa, yes this definitely should be added to documentation! There are at least a few other people out there that want to do this. You just add the tags right below the "Create a label" checkbox. This works in unformatted and table. I was even able to apply a class and theme it with CSS.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

zarabatana’s picture

Nice suggestion.
It works perfectly.
Thanks

Kris77’s picture

@milos.kroulik in which part of views I can insert <b>[label]</b>?

Thanks