Favicon.ico: Difference between revisions From Online Manual

Jump to: navigation, search
No edit summary
No edit summary
Line 1: Line 1:
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.
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 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"

Revision as of 20:49, 15 July 2014

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.

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: