[ Help ] Need the code for making favicon's work [ Code ]

TinyBuilder

Bike ✔
Mar 19, 2012
717
66
Hello, is there any way I could use my favicon as the hotel's favicon? What code to put in header.php to make the favicon work?

Thanks,
Tiny
 

Gajeel

Well-Known Member
Oct 4, 2011
2,411
413
One, you should convert your image file (the icon) to an .ico file.
Second, here's the code...
Code:
<link rel="shortcut icon" href="NAMEOFTHEFILE.ico" />

Put the .ico file into the root directory, but if you prefer storing it to a folder then make sure you put the folder hierarchy e.g. if it's on the "1" folder under image then it should be...
Code:
<link rel="shortcut icon" href="/img/1/NAMEOFTHEFILE.ico" />

And change the NAMEOFTHEFILE to the name of your .ico file. ;) Hope it helps.
 

TinyBuilder

Bike ✔
Mar 19, 2012
717
66
One, you should convert your image file (the icon) to an .ico file.
Second, here's the code...
Code:
<link rel="shortcut icon" href="NAMEOFTHEFILE.ico" />

Put the .ico file into the root directory, but if you prefer storing it to a folder then make sure you put the folder hierarchy e.g. if it's on the "1" folder under image then it should be...
Code:
<link rel="shortcut icon" href="/img/1/NAMEOFTHEFILE.ico" />

And change the NAMEOFTHEFILE to the name of your .ico file. ;) Hope it helps.

Thanks a lot ! I just put the favicon.ico to the root directory , before it was inside the swift_images ;)
 

Users who are viewing this thread

Top