Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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']);
}
Comment | File | Size | Author |
---|---|---|---|
#7 | title-wrap_classes-1961810-7.patch | 495 bytes | seemas |
#2 | title-wrap_classes-1961810-2.patch | 927 bytes | peximo |
Comments
Comment #1
fcortez CreditAttribution: fcortez commentedComment #2
peximo CreditAttribution: peximo commentedAttached patch should fix the bug.
Comment #3
plachCommitted and pushed, thanks.
Comment #4
fcortez CreditAttribution: fcortez commentedThanks for the patch!
Comment #7
seemas CreditAttribution: seemas at Adapt commentedAdapted fix for 7.x-1.0-alpha7