# How to Add a Favicon to Your Knack App?

**URL:** <https://forums.knack.com/t/how-to-add-a-favicon-to-your-knack-app/8448>\
**Category:** Show & Tell\
**Created:** [May 7, 2020, 10:33pm UTC](https://forums.knack.com/t/how-to-add-a-favicon-to-your-knack-app/8448 "2020-05-07T22:33:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soluntech](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/soluntech/32/780_2.png) [@Soluntech](https://forums.knack.com/u/Soluntech)\
**Post date:** [May 7, 2020, 10:33pm UTC](https://forums.knack.com/t/how-to-add-a-favicon-to-your-knack-app/8448/1 "2020-05-07T22:33:35Z")

</div>

Hello Folks!

In order to help users save time and avoid the struggle of identifying your application in their web browser you must implement a **_Favicon_**.&nbsp;

This will also be practical for users to locate the application when there are too many tabs open at the same time. Additionally, a **_Favicon_** will make the design stand out and be visible, bringing brand recognition to your work.

![](upload://onqwbztgyFlNCKrPodR052hANM5.png)

Do you want to try? Follow this steps guide to implement it:

&nbsp;

1. **Create the Favicon image in \*.ico or \*.png format**
2. **Upload it to a cloud repository like Amazon S3**

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;link.rel = 'shortcut icon';

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;link.href = '[https://soluntech-www.s3.amazonaws.com/Logo+Icon+-+125+x+125.png](https://soluntech-www.s3.amazonaws.com/Logo+Icon+-+125+x+125.png)'; // Update this reference with your favicon URL path

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementsByTagName('head')[0].appendChild(link);};

&nbsp;

1. **Insert this piece of code in your Knack app**

&nbsp;var UpdateFavicon = function () {

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var link = document.querySelector("link[rel\*='icon']") || document.createElement('link');

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;link.type = 'image/x-icon';

&nbsp;

1. **Add this code to the 'render.any' event**

$(document).on('knack-scene-render.any', function(event, scene) {

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UpdateFavicon();

})

Incorporate this into all of your Knack apps and tell us how it goes!

&nbsp;

_ **Let’s make IT Happen!** _

&nbsp;
