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 file is used edit /Themes/default/index.template.php as follows:
To change which image is used edit /Themes/default/index.template.php as follows:


Find <head> then add after:
Find <head> then add after:
Line 7: Line 7:
echo '
echo '
<link rel="shortcut icon" href="favicon.ico" />';
<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 folder] without any code edits given that the file is named correctly "favicon.ico"




[[Category:FAQ]]
[[Category:FAQ]]

Revision as of 12:48, 24 August 2012

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 folder] without any code edits given that the file is named correctly "favicon.ico"



Advertisement: