Meta Box
Support Forum
Support › General › Disable a Label
Is there an attribute to display a label for a field?
Hi Dave,
A field label is set via name attribute. Please try it.
name
Also, the desc attribute adds a description to the field input, and label_description adds a description for the field label.
desc
label_description
Apologies, I meant "disable a label".
I need to compact a form into a smaller space and I am using "placeholders", so I want to disable the labels for some fields.
I got it. All you need to do is set 'name' => '' for the fields. Then field labels won't appear.
'name' => ''