Favicon.ico From Online Manual

Revision as of 10:07, 10 July 2013 by Illori (talk | contribs)
Jump to: navigation, search

A favicon is the little image that is shown in a browser's bookmarks, address bar or tabs when displaying pages from a particular site. The default favicon is the favicon.ico file and one is supplied with the SMF installation.

To change which image is used edit /Themes/default/index.template.php as follows:

Find <head> then add after:

echo ' <link rel="shortcut icon" href="favicon.ico" />';

Most modern browsers will pickup that you have a favicon if it is placed on your site or forum root [main directory] without any code edits given that the file is named correctly "favicon.ico"

Most modern browsers have image caching enabled by default, this could make the favicon.ico not show up in your browser until the cache is refreshed, this could take hours or days depending on the browser settings. Waiting a while for the image to show is a good idea before assuming that it did not work as it is not shown as soon as it is uploaded.



Advertisement: