How to use field.tpl for rendered node in views3 i have set up a view (drupal 7) with a field that rendered the full node (node referenced field), and i want to get rid off the extra classes and tags wrapped around the fields.

i have copied field.tpl to my templates dir, and no matter what i name it it doesn't effect anything. I have selected that in the field settings in views. and yes, cleared the cache always.

would i name it after the content type. or the view.  i even left it at just field.tpl and still nothing.
If you want to override the views field template, the correct template file name would be views-view-fields.tpl.php.

You need to copy the template sites/all/modules/views/theme/views-view-field.tpl.php to your current enabled theme folder. Then update the file as you need.

Rescan template files in your view theming information. The file views-view-field.tpl.php should be highlighted with bold. You may need to fluch the cache. It is a view template to all the fields as a row.


If you want to theme a specific field, you could use views-view-field--[field_name].tpl.php. It is the most specific view template.
You can check more in Views theming.