0

I'm using a theme that includes bootstrap. I'd like to inject class one_third into <div class="view-filters"> and two_third last to <div class="view-content">. Is there a way to do so from any theme theme_preprocess_area?

I know I could accomplish using javascript (selecting div.view-filters and addClass()), but I think it would be most prudent to handle in perhaps the preprocessing?

enter image description here

1 Answer 1

2

Views provides a lot of .tpl files for doing just this. They are found in the /theme folder of the views module folder. The one you want is views-view.tpl.php

Simply copy views-view.tpl.php into your theme's templates folder and edit ~ line 43 to include your bootstrap classes and whatever other markup you require ;)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.