I have the following code.

function template_preprocess_image(&$vars) {        

     if($vars['style_name'] == 'thumbnail'){        
        $vars['attributes']['class'][] = 'media-object';        


I am not able to remove img-responsive class from the this field. I have tried several ways but not luck. Please help me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.