In an earlier article, I discussed how to create a favicon for your web site (How to Create a Favicon for Your Website). The instructions in this article applied to an HTML site, but it could be used in any CMS by modifying its template.

To create a favicon in Joomla, you need copy the favicon file to the template folder and edit index.php. This folder can be found in the /templates folder. After the favicon has been copied, open index.php and find the <head></head> section of the page. Insert the following code at any point between these two HTML tags:

        <link rel="shortcut icon" href="templates/<?php echo $this->template ?>/favicon.ico" />

The $this->template variable gives the full path to favicon.ico. Open your web site and you should see the favicon in the browser tab and address bar.

Print Friendly, PDF & Email
Translate ยป