Icons for ‘edit’ and ‘delete’ option in Views

When creating a View in Drupal, you can add an “edit” and “delete” link as view fields. The issue is these are displayed as text.

It would be nice to have a pretty icon instead.

To do this we can use the “Text to display” field to rewrite the output to an image. Lets grab some nice images from “iconarchive.com”

Edit Link

 src="http://icons.iconarchive.com/icons/custom-icon-design/office/16/edit-icon.png" alt=”edit”>

Delete Link

 src="http://icons.iconarchive.com/icons/custom-icon-design/office/16/delete-icon.png" alt=”delete”>

This does NOT work on Taxonomy links

Leave a Reply

Your email address will not be published. Required fields are marked *