Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-10-31 20:51:11

speeke
Member
From: Bruny Island, Australia
Registered: 2009-03-29
Posts: 161
Website

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

#3 2009-10-31 21:05:33

speeke
Member
From: Bruny Island, Australia
Registered: 2009-03-29
Posts: 161
Website

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

#4 2009-10-31 21:08:13

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

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

Board footer

Powered by FluxBB