Force a favicon onto a webpage – 2016 update

Back in 2011 I wrote this article about supporting multiple sites on shared hosting, and forcing each site to have it’s own favicon.

Modern browsers require image files, and it is just older browsers (and IE) that require the .ico files:

<link rel="icon" type="image/png" href="http://yourdomain.com/favicon.png">
<!--[if IE]><link rel="shortcut icon"href="http://yourdomain.com/favicon.ico"/><![endif]-->
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: