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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

devd’s picture

Hi Soundvessel,

Please use the attached patch to resolved your problem.

Thanks & Regard
Devendra

Soundvessel’s picture

Worked 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!

phillipclarke29’s picture

Does anybody know how to apply CSS classes to "subscribe to newsletter" element of the form.

letrotteur’s picture

This patch will apply wrapper_classes to checkbox component.

tdkonsta’s picture

#4 works on 7.x-4.x-dev

apaderno’s picture

Version: 7.x-2.0-beta1 » 7.x-2.x-dev