Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
How to display a Favicon?
I notice that Textgarden has a favicon, but I cannot see the link to it in view source.
Normally I use the following code:
<link rel="shortcut icon" href="favicon.ico" />
and upload the icon to the root. Can anyone please help explain where to link to a favicon, and whether it should be uploaded to root or the textpattern folder?
I am working on an internal server using MAMP, and so I can’t check myself.
“People who value their privileges above their principles soon lose both.”
Dwight D. Eisenhower
Offline
#2 2009-10-31 20:57:21
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: How to display a Favicon?
You can place the favicon.ico wherever you like. If you upload it to the root, place this somewhere in the <head></head>
section of the page (Presentation > Pages):
<link rel="shortcut icon" href="<txp:site_url />favicon.ico" />
If it’s in your images
directory:
<link rel="shortcut icon" href="<txp:site_url />images/favicon.ico" />
Offline
Re: How to display a Favicon?
Brilliant, thanks Els.
I’m still getting the hang of things in Textpattern, but on reflection that’s the obvious solution ;)
“People who value their privileges above their principles soon lose both.”
Dwight D. Eisenhower
Offline
Re: How to display a Favicon?
speeke wrote:
I notice that Textgarden has a favicon, but I cannot see the link to it in view source.
Many browsers do automatically look, and fetch, favicon.ico
from domains root (domain.com/favicon.ico
).
Offline
Pages: 1