I created a Flexinode Content Type by the name of "News", added a Text Area for it which I then named "Body" for its Field Label.
When published however, the words "Body" would appear just before the actual text that was submitted into the text area.
How may I remove the words "Body" from appearing in the published News?
Thanks in advance.
Comments
Comment #1
killes@www.drop.org commentedYou cannot actually remove the label, you can hide it though. Look for the surrounding css class and set it do display: none; in your theme's css file.
Comment #2
syaman commentedThanks for the advice, but I'm really not clear on how to find out what the surrounding class for just the word "Body" (field name) in the publshed node is. Could you help elaborate? Thanks!
Comment #3
killes@www.drop.org commentedLook at the html source that is generated:, it will look similar to.
then you need to set
.flexinode-textarea-7 label {
display: none;
}
Comment #4
syaman commentedThat was very helpful! Thank you!
Comment #5
Bèr Kessels commentedalternatively you can use theme functions to do the magic.
For example:
Will print for example
Read more about theme functions in the handbook.