Closed (fixed)
Project:
Webform
Version:
7.x-3.18
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2013 at 16:29 UTC
Updated:
13 Sep 2013 at 17:11 UTC
when i had a form in drupal 6 there was an extra wrapper around a label and field, like <div class="form-item" id="edit-submitted-fieldname-wrapper">. In drupal 7 this is missing! Instead "form-item" class has moved up one level to class="form-item webform-component webform-component-select"
so in effect the double wrapper has been reduced to one and i miss it! how can i get it back?
Comments
Comment #1
quicksketchYou can override theme_webform_element() to add the second wrapper back if you like. It was intentionally removed in D7 (and was only added in D6 because there wasn't any way to add classes to the existing wrappers).