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:
Thanks again for reading, I really appreciate any help.
Posted Mar 2, 2020, 5:53 AM UTC
24
Go to the display settings for that content type and disable it
And, adding it as a class for the page would be done in a preprocess function.
Thanks, bro.
You have saved me