# Get a Favicon to display on a Link (and File) field types

**URL:** <https://forums.knack.com/t/get-a-favicon-to-display-on-a-link-and-file-field-types/15912>\
**Category:** Ask Developers\
**Created:** [March 26, 2024, 8:38am UTC](https://forums.knack.com/t/get-a-favicon-to-display-on-a-link-and-file-field-types/15912 "2024-03-26T08:38:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/marc/32/3768_2.png) [@Marc](https://forums.knack.com/u/Marc)\
**Post date:** [March 26, 2024, 8:38am UTC](https://forums.knack.com/t/get-a-favicon-to-display-on-a-link-and-file-field-types/15912/1 "2024-03-26T08:38:26Z")

</div>

I want to replace the long URL display on a **Link** field with a favicon.

This JS works on the **File** field type, but not on the **Link** field type:

//Change all document links with a paper clip//  
$(document).on(‘knack-view-render.any’, function(event, view, data) {  
$(“a.kn-view-asset”).html(“”);  
});

**I need similar JS for a Link type field.**

Tx in advance!!!

---

<div class="post-metadata">

**Author:** ![StephenChapman](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/stephenchapman/32/1759_2.png) [@StephenChapman](https://forums.knack.com/u/StephenChapman)\
**Post date:** [March 26, 2024, 8:34pm UTC](https://forums.knack.com/t/get-a-favicon-to-display-on-a-link-and-file-field-types/15912/2 "2024-03-26T20:34:21Z")

</div>

Hi @Marc, no JS required!  
You can add the favicon code directly into the field settings like below:  
`<i class="fa fa-paperclip"></i>`

 ![image](https://us1.discourse-cdn.com/flex020/uploads/knack/original/2X/5/5160371f15593d16f2ca113ca3473e06a9ec3016.png)

It should look something like this in the front-end:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/knack/original/2X/7/781b8dd683aa9b96f53387dd43d850848a1bf0ab.png)

---

<div class="post-metadata">

**Author:** ![Marc](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/marc/32/3768_2.png) [@Marc](https://forums.knack.com/u/Marc)\
**Post date:** [March 29, 2024, 9:20am UTC](https://forums.knack.com/t/get-a-favicon-to-display-on-a-link-and-file-field-types/15912/3 "2024-03-29T09:20:24Z")

</div>

Fantastic! Thanks so much for pointing this out.  
Knack should do the same for a File field type.
