I installed fences to add heading tags to some of my content type fields, as well as mark up content with HTML5 tags.

However, I have rolled back a change to a couple of fields (set the Fences field back to

in the Manage Fields section of the content type) and now the label of the field has had H3 applied to it, and placed that label outside of the field wrapper. When I turn Fences off, it goes back to normal (label inside the wrapper, no heading tag applied to label), then I turn Fences back on and the label is outside the field wrapper.

Example with Fences off (Correct)

<div class="field field-name-field-foobar field-type-text-long field-label-above">
  <div class="field-label">Foobar Label</div>
    <div class="field-items">
    <div class="field-item even">Vivamus dignissim. Donec non enim in turpis pulvinar facilisis.</div>
  </div>
</div>

Example with Fences on (Problem)

<h3 class="field-label"> Foobar Label </h3> /* Label outside of wrapper. Why is there H3 now? */
<div class="field field-name-field-foobar field-type-text-long field-label-above"> Vivamus dignissim. Donec non enim in turpis pulvinar facilisis. </div>

In my Fences config, I've left the defaults, Use the default wrapper markup from Drupal and Use the default wrapper markup from Drupal (nested divs).

I've had a look at the database level to see if there is something there that I can change, but not sure I want to try that.

Please help.

Comments

Spanners’s picture

My issue has been fixed by applying the patch from here: Add optional wrapper around field title and content

Don't worry about going down the thread, just apply the patch in the description.

Spanners’s picture

Status: Active » Closed (works as designed)