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.
Webform 7.x-4.0 allows you to add CSS classes to the wrapper element http://screencast.com/t/tUm8vVV5 which is incredibly useful grid classes with front-end frameworks. MailChimp Webform however fails to apply those classes http://screencast.com/t/q89YRKod to the component output.
Comment | File | Size | Author |
---|---|---|---|
#4 | webform_mailchimp-webform-component-css-classes-2341833-4.patch | 1.63 KB | letrotteur |
#1 | does_not_accept_classes-2341833-1.patch | 1.27 KB | devd |
Comments
Comment #1
devd CreditAttribution: devd commentedHi Soundvessel,
Please use the attached patch to resolved your problem.
Thanks & Regard
Devendra
Comment #2
Soundvessel CreditAttribution: Soundvessel commentedWorked like a charm! I actually duplicated the code for the else instance of only a checkbox for our case. The markup is still missing some wrappers compared to normal checkboxes but this certainly cuts down on some CSS bloat. Thanks!
Comment #3
phillipclarke29 CreditAttribution: phillipclarke29 commentedDoes anybody know how to apply CSS classes to "subscribe to newsletter" element of the form.
Comment #4
letrotteur CreditAttribution: letrotteur commentedThis patch will apply wrapper_classes to checkbox component.
Comment #5
tdkonsta CreditAttribution: tdkonsta as a volunteer commented#4 works on 7.x-4.x-dev
Comment #6
apaderno