Stripping the wrappers in a custom field d7 I have a custom field in d7 and I output it as 

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


The problem is it wraps around a whole load of stuff. How can I get in and edit this html? 

I suspect somewhere in the field templates or using the api. I can live with the bloated html if I could get rid of the title on the a tag (title="Sample 1")

&lt;span class="image-wrapper"&gt;&lt;a title="Sample 1" href="#1" rel="history" class="advance-link"&gt;
                    &lt;div class="field field-name-field-product-image field-type-image field-label-hidden"&gt;&lt;div class="field-items"&gt;&lt;div class="field-item even"&gt;&lt;img typeof="foaf:Image" src="http://extranet.shy-uk.com/sites/extranet.shy-uk.com/files/look-detail_0.jpg" width="620" height="320" alt=""&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/a&gt;&lt;/span&gt;
You can override field.tpl.php and its derivatives if you want to code it manually.

Or the Fences module might do the trick:


  Fences is a an easy-to-use tool to specify an HTML element for each field. This element choice will propagate everywhere the field is used, such as teasers, RSS feeds and Views. You don't have to keep re-configuring the same HTML element over and over again every time you display the field.


It lets you control the base markup for each field through the UI - a must have for any project these days in my opinion :)