Webform theming field labels through webform-form.tpl.php I'm theming a Webform I created by using a custom webform-form-[nid].tpl.php template. I've been able to render individual fields fine, but I'm having a problem with the date field which is split into 3 fields (month, day, year). 

To wrap each item in custom HTML, I render each of those fields like this:

 &lt;?php print drupal_render($form['submitted']['birthdate']['day']); ?&gt;
 &lt;?php print drupal_render($form['submitted']['birthdate']['month']); ?&gt;
 &lt;?php print drupal_render($form['submitted']['birthdate']['year']); ?&gt;


But the label is automatically being rendered separately, so how can I render it manually?

This is the output that I'm getting: (simplified for ease of understanding)

&lt;div class="row"&gt;

  &lt;div class="column"&gt;
    &lt;label for="month"&gt;Month&lt;/label&gt;
    &lt;select name="submitted[birthdate][month]"&gt;
      &lt;option selected="selected" value=""&gt;Month&lt;/option&gt;
      &lt;option value="1"&gt;Jan&lt;/option&gt;
      ...more options...
    &lt;/select&gt;
  &lt;/div&gt;

  &lt;div class="column"&gt;
    &lt;label for="day"&gt;Day&lt;/label&gt;
    &lt;select name="submitted[birthdate][day]"&gt;
      &lt;option selected="selected" value=""&gt;Day&lt;/option&gt;
      &lt;option value="1"&gt;1&lt;/option&gt;
      ...more options...
    &lt;/select&gt;
  &lt;/div&gt;

  &lt;div class="column"&gt;
    &lt;label for="year"&gt;Year&lt;/label&gt;
    &lt;select name="submitted[birthdate][year]"&gt;
      &lt;option selected="selected" value=""&gt;Year&lt;/option&gt;
      &lt;option value="2014"&gt;2014&lt;/option&gt;
      ...more options...
    &lt;/select&gt;
  &lt;/div&gt;

&lt;/div&gt;

&lt;!-- this gets generated automatically --&gt;
&lt;div class="webform-component--birthdate"&gt;
  &lt;label for="birthdate"&gt;Birthdate&lt;/label&gt;
  &lt;div class="webform-container-inline"&gt;
    &lt;!-- empty container here where date fields were being rendered --&gt;
  &lt;/div&gt;
&lt;/div&gt;


So I need to somehow print that "Birthdate" label manually so I can place it wherever I need, like so:

row
  column label
  column month
  column day
  column year
/row


I need to do this so I can wrap each element with CSS classes for a responsive grid.
You can simply hide the label from date field setting and add like this : 

&lt;div class="date-wrapper"&gt;
  &lt;label&gt;Label here&lt;/label&gt;
  &lt;div class="date-field"&gt;
    &lt;?php print drupal_render($form['submitted']['birthdate']['day']); ?&gt;
    &lt;?php print drupal_render($form['submitted']['birthdate']['month']); ?&gt;
    &lt;?php print drupal_render($form['submitted']['birthdate']['year']); ?&gt;
  &lt;/div&gt;
&lt;/div&gt;