If your table rendered using `theme()` function like `theme_table()`, you can preprocess it from your theme function. For `theme_table()` you can add class to every table like this in `template.php` of your theme. function my_theme_preprocess_table(&$variables) { $variables['attributes']['class'][] = 'table'; }