|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
i have this icon code:
Code:
<link href='green_icon.jpg' rel='icon' type='image/x-icon'/>
<link href='green_icon.jpg' rel='shortcut icon' type='image/x-icon'/>
but the icon only shows up on the front page. how can i make it show up on all pages? |
|
#2
|
||||
|
||||
|
Use an absolute URL instead of a relative one.
Do you really need both elements? I think the second will work by itself.
__________________
Spreading knowledge, one newbie at a time. Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions IE7: the generation 7 browser new in a world of generation 8 browsers. Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around. |
|
#3
|
|||
|
|||
|
Also, you must save the icon in the directory in which the file is in.
|
|
#4
|
|||
|
|||
|
Quote:
what do you mean? what is relative and absolute??? |
|
#5
|
||||
|
||||
|
An absolute URL includes the protocol and the domain name (or IP address).
"http://www.example.org/contact-us.html" A relative URL only includes a path that is relative to some location on the server. "/about-us/john.html" |
|
#6
|
|||
|
|||
|
tru i'll change it to absolute. thanks for the info.
|
|
#7
|
||||
|
||||
|
Hi gsquare,
This has always worked for me: Change your .jpg to .ico here. I think it works better if it's just simply called favicon.ico instead of green_icon.ico. Here's the only line you need. Code:
<link rel="shortcut icon" href="favicon.ico"> Carrie
__________________
"Show me a sane man and I will cure him for you." ~ Carl Jung |
|
#8
|
|||
|
|||
|
Agreed. Also I agree with kravvitz. Use the full URL when declaring your icon.
|
|
#9
|
|||
|
|||
|
tru thing guys, thanks for the help. i'll check the .ico conversion site when i get home.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Icon only shows on home page??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|