Quantcast
Channel: How do I remove a DIV from the rendered result of a BEF exposed form? - Drupal Answers
Viewing all articles
Browse latest Browse all 2

How do I remove a DIV from the rendered result of a BEF exposed form?

$
0
0

I'm using Bootstrap as my theme and Better Exposed Filters to generate check boxes for term filters that are exposed to my visitors/users. Unfortunately, Bootstrap adds a "form-group" class to all elements of a form that aren't radio buttons and/or check boxes. BEF (or something) adds a DIV around each of the check boxes and thus Bootstrap adds the form-group class and that messes with the formatting of the check boxes.

So it looks like:

<div class="form-type-bef-checkbox form-item-edit-field-list-crit-tags-tid-591 form-item form-group"><input type="checkbox" name="field_list_crit_tags_tid[]" id="edit-field-list-crit-tags-tid-591" value="591"  multiple="multiple" class="form-control" /> <label class='option' for='edit-field-list-crit-tags-tid-591'>WAAC</label></div>

I need to remove either the DIV entirely or figure out a way to NOT put the form-group class on that particular div.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images