0

so I have a content-type X and some nodes of this type. If I go to the node page, I'd like to not see the label of an empty field. Where in the display options can I change that?

In my case ,the content of the fields are some check-boxes (from a vocabulary). I'm on D7.

4
  • Just use CSS: label:empty { display: none; }. It has pretty good browser support
    – Clive
    Commented Dec 14, 2017 at 13:28
  • why render somethign that's not used anyway? als ocss does not work here since it actually generates a link which is weird.
    – xotix
    Commented Dec 14, 2017 at 13:38
  • It was a quick hack. If you were worried about best practice you wouldn't be removing the label, surely? It breaks accessibility guidelines/legislation
    – Clive
    Commented Dec 14, 2017 at 13:55
  • I believe this is a duplicate of stackoverflow.com/questions/7074834/…
    – bleen
    Commented Dec 14, 2017 at 14:20

1 Answer 1

0

Try the settings in /admin/structure/taxonomy/X/display (label settings)

but it should be done automatically if there is no content

1
  • yeah was a strange misconfiguration
    – xotix
    Commented Dec 14, 2017 at 16:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.