Change a label in a View to a div? How can I change the label for a view to be a div instead? Here is my HTML, its the "Sort by" label I need to change. 

&lt;form class="ctools-auto-submit-full-form views-exposed-form-author-content-panel-pane-1 ctools-auto-submit-processed" action="/" method="get" id="views-exposed-form-author-content-panel-pane-1" accept-charset="UTF-8"&gt;&lt;div&gt;

&lt;!-- THEME DEBUG --&gt;
&lt;!-- CALL: theme('views_exposed_form') --&gt;
&lt;!-- BEGIN OUTPUT from 'sites/all/modules/contrib/views/theme/views-exposed-form.tpl.php' --&gt;
&lt;div class="views-exposed-form"&gt;
  &lt;div class="views-exposed-widgets clearfix"&gt;
          &lt;div id="edit-sort-bef-combine-wrapper" class="views-exposed-widget views-widget-sort-sort_bef_combine"&gt;
                        &lt;div class="views-widget"&gt;
                    &lt;div class="form-item form-type-radios form-item-sort-bef-combine"&gt;
  &lt;label for="edit-sort-bef-combine"&gt;Sort by &lt;/label&gt;
 &lt;div id="edit-sort-bef-combine" class="form-radios"&gt;&lt;ul class="btn-group"&gt;&lt;li class="btn-group__item"&gt;&lt;a href="http://localhost.site.com/news/author?sort_bef_combine=created%20DESC" class="btn btn--sort btn--active"&gt;Date&lt;/a&gt;&lt;/li&gt;&lt;li class="btn-group__item"&gt;&lt;a href="http://localhost.site.com/news/author-dobie?sort_bef_combine=value%20DESC" class="btn btn--sort"&gt;Popular&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;input type="hidden" name="sort_bef_combine" value="created DESC"&gt;&lt;/div&gt;
&lt;/div&gt;
        &lt;/div&gt;
              &lt;/div&gt;
                    &lt;div class="views-exposed-widget views-submit-button"&gt;
      &lt;button class="ctools-use-ajax ctools-auto-submit-click js-hide btn form-submit" id="edit-submit-author-content" name="" value="Apply"&gt;Apply&lt;/button&gt;
    &lt;/div&gt;
      &lt;/div&gt;
&lt;/div&gt;

&lt;!-- END OUTPUT from 'sites/all/modules/contrib/views/theme/views-exposed-form.tpl.php' --&gt;

&lt;/div&gt;&lt;/form&gt;


The template responsible is views-exposed-form.tpl.php. Within the template the code below prints the form: 

    &lt;div class="views-widget findhere "&gt;
      &lt;?php print $widget-&gt;widget; ?&gt;
    &lt;/div&gt;


I've done a dsm on the $widget but the array just contains the full HTML.

Ive looked at hook_form_alter and done a dsm on this but in the full form array I still cant see a way to change the form label to a different element.
Looks like you are using better exposed filter module, it has option to configure the sorting label



so instead of Sort By &lt;div&gt;Sort by&lt;/div&gt; it will not replace the label but give you a nested div if that works for you.