0

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.

:?:

4
Contributors
6
Replies
10
Views
12 Years
Discussion Span
Last Post by paradox814
0

Hello.

place an icon in your web directory called

favicon.ico

and stick this line in the <head> of your HTML

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

check this page out for more

SE (Dave)

0

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

0

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

if (file_exists("THE LOCATION OF IT/favicon.ico")) {
echo "<link REL=\"shortcut icon\" HREF=\"THE LOCATION OF IT/favicon.ico\" TYPE=\"image/x-icon\">\n";
	}

:rolleyes:
Thats for Danielle, j/k!!:o

0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.