You would do this by overriding theme_form_element() in your theme, eg, something along the lines of:
function YOURTHEME_form_element($variables) {
$element=&$variables['element'];
if ( /* this is a webform textfield */ ) {
// create the html without the div wrapper
} else {
// do it the standard way
}
return /* the html */;
}
A look into includes/form.inc
will show you the full theme_form_element()
code that you could copy into your function above where necessary.
theme_form()
inincludes/form.inc
and override it similarly asYOURTHEME_form()
in your theme'stemplate.php
file – Jimajamma Apr 7 '14 at 17:59return theme_form_element($variables);
– Scott Joudry Feb 28 '15 at 17:44textarea
field it yet return it withdiv
wrapper – zhilevan Sep 24 '15 at 6:15