slscart logo

Adding a favicon to the slscart Template

How to add a favicon to a template.

The favicon generally resides in the root directory of the store. A default one is generally provided with an slscart store. Add this line of code below the <title> tag in the template.

<link rel="icon" href="favicon.ico" type="image/x-icon">

Note the favicon.ico does not have to be in the home directory, but it is customary. Also note that if this is not included in the template and a favicon exists (usually in the root directory) that the favicon will not be cached per .htaccess instructions. And if there is no favicon it will generate many errors (as seen in the cpanel under Errors) because most bots and browsers expect one and will try and read it.

Note that this was not used:

<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">

This is an old format specifically for Internet Explorer 6.

***