How to connect favicon to a website in

How to connect favicon to a website in

Problem Description:

I am creating a website through a framework " " and I can’t connect favicon.ico.

I tried to connect it with this method:

  <link rel="icon" href="favicon.ico"><!-- 32×32 -->

but it doesn’t work. Can you tell me how I can do this?

Solution – 1

I solved the problem by adding favicon.ico to the "src" folder and adding to index.html :

<link data-trunk rel="copy-dir" href="./src/"> 
<link rel="icon" href=".src/favicon.ico" type="image/x-icon" />
Rate this post
We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.