skip to Main Content
<link rel=" shortcut icon" href="./img/favicon-96.png"/>

This is my file list

I wanted it to display on chrome but its not working i even cleared cache and restarted my pc even after this its not working!!

2

Answers


  1. Try the below instead:

    <link rel=" shortcut icon" href="/img/favicon-96.png"/>
    

    Your file path had a period in the front when it didn’t need one.

    Login or Signup to reply.
  2. In the section of your HTML code (typically in your site’s main HTML file, like index.html or header.php), add the following line inside the tags, specifying the correct path to your favicon file:

    <link rel="icon" type="image/x-icon" href="/path/to/favicon.ico">

    Replace "/path/to/favicon.ico" with the actual file path to your favicon on your server. If you placed the favicon in your website’s root directory, you can use "/favicon.ico".

    For a PNG or other image formats, you can use the following line:

    <link rel="icon" type="image/png" href="/path/to/favicon.png">

    Hope this will help you.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search