954,164 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Site Icon

This is a simple thing but I havn't found it by searching so I will just ask.

I am not sure if this is a php code but since my CMS (e107) is written in it I felt I should ask here.

So the little icon you get in the Firefox tab or when bookmark a page in IE, how do you do that? I know how to make a little icon but what is the code?

I see Daniweb has one.

:?:

Mighty_Squid
Light Poster
32 posts since Jan 2005
Reputation Points: 10
Solved Threads: 0
 

Hello.

place an icon in your web directory called

favicon.ico


and stick this line in the of your HTML

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


check this page out for more

SE (Dave)

steveneven
Junior Poster
147 posts since Jan 2005
Reputation Points: 11
Solved Threads: 8
 

The right search term makes all the difference. I didn't know what what it was called.

Thanks you for the code for and the link!!! :D :D

Mighty_Squid
Light Poster
32 posts since Jan 2005
Reputation Points: 10
Solved Threads: 0
 

no probs.

SE

steveneven
Junior Poster
147 posts since Jan 2005
Reputation Points: 11
Solved Threads: 8
 

Or we can just be simple with PHP and make it like the cool way like this:

[PHP]
if (file_exists("THE LOCATION OF IT/favicon.ico")) {
echo "\n";
}
[/PHP] :rolleyes:
Thats for Danielle, j/k!!:o

mikeSQL
Junior Poster
196 posts since Dec 2004
Reputation Points: 16
Solved Threads: 3
 

Will that work better? I use e107 for my CMS.

I put the favicon.ico in and used the html but it's really hit or miss if it shows up.

Mighty_Squid
Light Poster
32 posts since Jan 2005
Reputation Points: 10
Solved Threads: 0
 

make sure your favicon.ico is a 16x16 pixel image

paradox814
Posting Whiz
351 posts since Oct 2004
Reputation Points: 13
Solved Threads: 4
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You