Add bootstrap row class on every n views rows I am using Drupal Bootstrap and to get the correct positioning I am using bootstrap rows and columns classes.

How do I render a bootstrap row class on every let's say 3 view rows (bootstrap columns)? The structure must be like this

&lt;div class="row"&gt;
  &lt;div class="views-row col-md-4"&gt;&lt;/div&gt;
  &lt;div class="views-row col-md-4"&gt;&lt;/div&gt;
  &lt;div class="views-row col-md-4"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="row"&gt;
  &lt;div class="views-row col-md-4"&gt;&lt;/div&gt;
  &lt;div class="views-row col-md-4"&gt;&lt;/div&gt;
  &lt;div class="views-row col-md-4"&gt;&lt;/div&gt;
&lt;/div&gt;
Use views bootstrap module, in views format style chose Bootstrap Grid it will solve your problem.