UPDATE: This is now included by default and should not be used.
In your subtheme’s template.php file, add the following:
1 2 3 4 5 |
function YOURTHEMENAME_preprocess_image(&$vars) { $vars['attributes']['class'][] = 'img-responsive'; // http://getbootstrap.com/css/#overview-responsive-images } |
Did you find this post useful?
Tip me some bitcoin: