The (Wrap tag class) is not being inserted into the HTML.
The line 117 of title.field.inc needs to change from:

if (!empty($settings['title_class'])) {
      $element['#attributes'] = array('class' => $settings['title_class']);
    }

Changed to:

    if (!empty($settings['title_class'])) {
      $element['element']['#attributes'] = array('class' => $settings['title_class']);
    }
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fcortez’s picture

Title: Wrap tag classes is not being inserted » Wrap tag classes are not being inserted
peximo’s picture

Status: Active » Needs review
FileSize
927 bytes

Attached patch should fix the bug.

plach’s picture

Status: Needs review » Fixed

Committed and pushed, thanks.

fcortez’s picture

Thanks for the patch!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit b7a8663 on 7.x-1.x, workbench authored by peximo, committed by plach:
    Issue #1961810 by peximo | fcortez: Fixed Wrap tag classes are not being...
seemas’s picture

Issue summary: View changes
FileSize
495 bytes

Adapted fix for 7.x-1.0-alpha7