Skip to main content
4 of 4
improved punctuation
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

Not sure if it's the best way to do this, but you can use the following code, with Drupal 7.

function MODULENAME_preprocess_views_view(&$vars) {
  if ($vars['view']->name == 'VIEWNAME') {
    $vars['rows'] = "<div class='wrapper-class'>" . $vars['rows'] . "</div>";
  }
}

This will wrap contents just below the "view-content" class

Aurora
  • 11
  • 1
  • 4