1

My web application is deployed in the www folder of Wamp. It is a PHP web application using Codeigniter as framework. So when I run the app then the icon displayed on the browser's tab is Wamp's icon !

enter image description here

Here is the project structure under the project's root folder :

enter image description here

So how can I change the app's icon ?

pheromix
  • 18,213
  • 29
  • 88
  • 158
  • Just a tip: I notice your ip is in your url. Which means you have not set your base_url on config.php `$config['base_url'] = 'http://localhost/papsp/';` You should set it because if not some links like css, images etc will not work. –  Jul 20 '17 at 12:40
  • https://stackoverflow.com/questions/9943771/adding-a-favicon-to-a-static-html-page `` –  Jul 20 '17 at 12:42
  • @wolfgang1983 yes you are right , but at this time my boss was testing the app from his computer , so... – pheromix Jul 20 '17 at 12:47

3 Answers3

3

Simply add the location of your .ico icon file in the meta tags.

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

theEUG
  • 399
  • 5
  • 18
2

Add a favicon into the webroot? https://en.wikipedia.org/wiki/Favicon

You can generate them easily here

Andy Flisher
  • 266
  • 1
  • 8
1

Add in head tag below meta tags. Then Add images to Project folder it's works fine.

     <link rel="icon" type="image/png" href="images/favicon.png" sizes="16x16">
Vinoth Smart
  • 383
  • 3
  • 13