hello, I can not add the class to the block filter shown in the template Bartik, what is wrong?

function bartik_views_exposed_form_alter(&$form, $form_state) {
  // change date format example from a field called 'date_filter'
  
  $form['views_exposed_form']['#attributes']['class'][] = 'test';
  
}

Comments

preksha’s picture

Is this what are you looking at? : https://www.drupal.org/node/320992

Thanks,
Preksha