r/drupal•
YurianG

How to hide a content field

Hey again lol.

I have another doubt. The site (my own portfolio) that I am development requires an extra field when a create a page, but I do not want to display this field, I only want it to add a different class for each page.

This is the field:

https://preview.redd.it/bfafd1rs77k41.png?width=1217&format=png&auto=webp&s=b8cba6f50476aa159009836d8215ad842750d4ad

Thanks again for reading, I really appreciate any help.

Posted Mar 2, 2020, 5:53 AM UTC

24
StuffaYouFace1•

Go to the display settings for that content type and disable it

4
arakwar•

And, adding it as a class for the page would be done in a preprocess function.

3
YurianGOP•

Thanks, bro.

3
YurianGOP•

You have saved me

2