For proper Bootstrap styling select inputs must have .form-control class. This can be done in absent theme function for selects.
For proper Bootstrap styling select inputs must have .form-control class. This can be done in absent theme function for selects.
Comments
Comment #1
stan.ag commentedThe "problem" is in adding .form-control class in process function _bootstrap_process_input(), which is not launched if you are not using drupal_get_form() for rendering form. So, you can't depend on process functions when writing something like this (my case):
In such a case .form-control class will not be added.
I don't know, if this requires change.
Comment #2
justinlevi commentedThis was driving me nuts and I ended up just solving with some JQuery.
$(".your-form-class-here select, .your-form-class-here input").addClass("form-control");
Comment #3
markhalliwell