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

killes@www.drop.org’s picture

You 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.

syaman’s picture

Thanks 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!

killes@www.drop.org’s picture

Look at the html source that is generated:, it will look similar to.

div class="flexinode-textarea-7"><div class="form-item">
 <label>Location:</label><br>
 <a href="event">Sundgaupark</a>
</div>
</div>

then you need to set

.flexinode-textarea-7 label {
display: none;
}

syaman’s picture

That was very helpful! Thank you!

Bèr Kessels’s picture

alternatively you can use theme functions to do the magic.

For example:

function yourtheme_flexinode_textarea($field_id, $label, $value, $formatted_value) {
  return "I return the field with ID $field_id, that contains the value $formatted_value";
}

Will print for example

I return the field with ID 12, that contains the value FOOBar

Read more about theme functions in the handbook.