I would like to know how to hide the filename in Drupal 7 files and add a link to an icon? The default style is awful I would like to change that. I am looking for the simplest solution because I just know basic HTML and CSS. Maybe I can use some module to do that? If somebody can explain me step by step how to do it will be great. enter image description here

1 Answer 1


Ran across your question looking for the same answer... This is what I found. I'm at best a novice with Drupal, so I need easy solutions.

There is this module: https://www.drupal.org/project/file_field_icons

There are also some more options/notes here using CSS: How to change File field icons (without changing core)?

  • Thank you for your reply Alison, but I know how to change an icon, I would like to know where I can add code link to the icon and delete/hide the name of the file in CSS. My case is about the linking icon not changing icon. I hope that is clear now :-)
    – Madeleine
    Sep 10, 2017 at 11:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.