Field template not being rendered On our company website we have a people page which amongst others has an image field called 'field_photo'

This is being rendered using the following:

&lt;?php print render($content['field_photo']); ?&gt;


However I need to be able to add some attributes to the img tag outputted, to do this I figured I would have to use a custom template and add in the required bits like so:

$item['#item']['attributes']['class'] = 'photo'; 


Problem I am having is no matter what I do, I don't seem to be able to get this to work no matter what I name the template (eg field--field_photo--image.tpl.php). I'm not used to working with Drupal at all, so any help would be great!

Ta
Can you try:

$item['#attributes'] = array('class' =&gt; 'photo');