Add bootstrap image css class to pictures

Bootstrap 3 has css classes for images -- Responsive images . A preprocess function in template.php can be used to add the css class.

/**
 *
 */
function THEMENAME_preprocess_image_style(&$vars) {
        $vars['attributes']['class'][] = 'img-thumbnail'; // can be 'img-rounded', 'img-circle', or 'img-thumbnail'
}

And "Clear Cache" (admin/config/development/performance).

Subscribe with RSS Subscribe to RSS - Bootstrap Pictures