Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By LewisNyman on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.0.x
Introduced in version:
8.0.0-alpha1
Issue links:
Description:
In D7 the file icons were printed as part of the file field template:
<span{{ attributes }}>{{ icon }} {{ link }}</span>
The icon template variable has been removed and instead the icons are being added using CSS in:
.file--general {
background-image: url(../icons/application-octet-stream.png);
}
If you want to overwrite these icons with your own, you can copy the CSS and point the background image to your chosen icons.
If you want to remove the icons completely, remove the stylesheet: file.formatter.generic.css
Impacts:
Module developers
Themers