What is a Favicon?
Favicon stands for “Favourite Icon”. Favicon is a tiny icon or image that appears next to your website or page title in a web browser.
Why do I need one?
- It Makes your website stand out from you competitors.
- It helps users to remember your brand.
- It looks polished and gives a professional edge to your website
- It allows users to find you website easily in the list of bookmarks
How to add a favicon?
To add a favicon, upload the favicon file to root directory of your website and add the following code to your header.php file
<link rel="icon" href="http://www.example.com/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="http://www.example.com/favicon.ico" type="image/x-icon" />
Change example.com with your website’s URL. And that’s it.
Note: The size of favicon should be 16 X 16 pixal and it should have .ico extension.
Useful Read: Creating a zip file with PHP’s ZipArchive