I created a custom node template in order to change what fields are generated.
<?php
print render($content['field_pdf']);
?>
The above php code renders the following html:
<div class="field field-name-field-pdf field-type-file field-label-hidden field-wrapper"><span class="file"><img class="file-icon" alt="" title="application/pdf" src="/modules/file/icons/application-pdf.png"> <a href="/sites/default/files/testmanual.pdf" type="application/pdf; length=1607045">lindamanual.pdf</a></span></div>
The problem is I only want the href to be rendered (not the image and the outer div). How can I do this?